move camera folder and sync

This commit is contained in:
lucas committed 2026-10-02 10:59:07 +00:00
1 parent ec48d2ef2d
commit 6fe6a54e86
2 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
FOLDER=/data/nextcloud/syncuser/camera/ FOLDER=/data/nextcloud/syncuser/pictures/camera/
export PYTHONPATH=/home/lucas/scripts export PYTHONPATH=/home/lucas/scripts
syncNC -c syncNC -c
+9 -9
View File
@@ -27,7 +27,7 @@ SYNC_RECIPIES=1
SYNC_ALINA=1 SYNC_ALINA=1
SYNC_ALINA_DROP=1 SYNC_ALINA_DROP=1
SYNC_WALLPAPER=1 SYNC_WALLPAPER=1
SYNC_CAMERA=1 SYNC_PICTURES=1
SYNC_SYNCFOLDER=1 SYNC_SYNCFOLDER=1
usage() { usage() {
@@ -40,7 +40,7 @@ Options:
-h, --help Show this help message and exit -h, --help Show this help message and exit
-l Show synchronization output -l Show synchronization output
-d Enable Alina Share synchronization -d Enable Alina Share synchronization
-c Enable Camera synchronization -c Enable Pictures synchronization
-w Enable Wallpaper synchronization -w Enable Wallpaper synchronization
-m Enable Memes synchronization -m Enable Memes synchronization
-s Enable Syncfolder synchronization -s Enable Syncfolder synchronization
@@ -119,7 +119,7 @@ parse_args() {
;; ;;
-c) -c)
SYNC_CAMERA=0 SYNC_PICTURES=0
;; ;;
-ab) -ab)
@@ -141,7 +141,7 @@ parse_args() {
SYNC_MEMES=0 SYNC_MEMES=0
SYNC_ALINA_DROP=0 SYNC_ALINA_DROP=0
SYNC_WALLPAPER=0 SYNC_WALLPAPER=0
SYNC_CAMERA=0 SYNC_PICTURES=0
;; ;;
-del) -del)
@@ -174,7 +174,7 @@ validate_sync_options() {
SYNC_SYNCFOLDER == 1 && SYNC_SYNCFOLDER == 1 &&
SYNC_ALINA_DROP == 1 && SYNC_ALINA_DROP == 1 &&
SYNC_WALLPAPER == 1 && SYNC_WALLPAPER == 1 &&
SYNC_CAMERA == 1 )); then SYNC_PICTURES == 1 )); then
die "No synchronization target selected." die "No synchronization target selected."
fi fi
@@ -234,11 +234,11 @@ sync_all() {
(( ret += $? )) (( ret += $? ))
fi fi
if (( SYNC_CAMERA == 0 )); then if (( SYNC_PICTURES == 0 )); then
sync_directory \ sync_directory \
"Camera" \ "Pictures" \
"Camera" \ "Pictures" \
"/data/nextcloud/syncuser/camera" "/data/nextcloud/syncuser/pictures"
(( ret += $? )) (( ret += $? ))
fi fi