move camera folder and sync
This commit is contained in:
1 parent
ec48d2ef2d
commit
6fe6a54e86
2 files changed
+10
-10
No files matched your search
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
FOLDER=/data/nextcloud/syncuser/camera/
|
||||
FOLDER=/data/nextcloud/syncuser/pictures/camera/
|
||||
|
||||
export PYTHONPATH=/home/lucas/scripts
|
||||
syncNC -c
|
||||
|
||||
+9
-9
@@ -27,7 +27,7 @@ SYNC_RECIPIES=1
|
||||
SYNC_ALINA=1
|
||||
SYNC_ALINA_DROP=1
|
||||
SYNC_WALLPAPER=1
|
||||
SYNC_CAMERA=1
|
||||
SYNC_PICTURES=1
|
||||
SYNC_SYNCFOLDER=1
|
||||
|
||||
usage() {
|
||||
@@ -40,7 +40,7 @@ Options:
|
||||
-h, --help Show this help message and exit
|
||||
-l Show synchronization output
|
||||
-d Enable Alina Share synchronization
|
||||
-c Enable Camera synchronization
|
||||
-c Enable Pictures synchronization
|
||||
-w Enable Wallpaper synchronization
|
||||
-m Enable Memes synchronization
|
||||
-s Enable Syncfolder synchronization
|
||||
@@ -119,7 +119,7 @@ parse_args() {
|
||||
;;
|
||||
|
||||
-c)
|
||||
SYNC_CAMERA=0
|
||||
SYNC_PICTURES=0
|
||||
;;
|
||||
|
||||
-ab)
|
||||
@@ -141,7 +141,7 @@ parse_args() {
|
||||
SYNC_MEMES=0
|
||||
SYNC_ALINA_DROP=0
|
||||
SYNC_WALLPAPER=0
|
||||
SYNC_CAMERA=0
|
||||
SYNC_PICTURES=0
|
||||
;;
|
||||
|
||||
-del)
|
||||
@@ -174,7 +174,7 @@ validate_sync_options() {
|
||||
SYNC_SYNCFOLDER == 1 &&
|
||||
SYNC_ALINA_DROP == 1 &&
|
||||
SYNC_WALLPAPER == 1 &&
|
||||
SYNC_CAMERA == 1 )); then
|
||||
SYNC_PICTURES == 1 )); then
|
||||
|
||||
die "No synchronization target selected."
|
||||
fi
|
||||
@@ -234,11 +234,11 @@ sync_all() {
|
||||
(( ret += $? ))
|
||||
fi
|
||||
|
||||
if (( SYNC_CAMERA == 0 )); then
|
||||
if (( SYNC_PICTURES == 0 )); then
|
||||
sync_directory \
|
||||
"Camera" \
|
||||
"Camera" \
|
||||
"/data/nextcloud/syncuser/camera"
|
||||
"Pictures" \
|
||||
"Pictures" \
|
||||
"/data/nextcloud/syncuser/pictures"
|
||||
(( ret += $? ))
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user