sync & torrent scripts
This commit is contained in:
1 parent
884ae1f841
commit
3e258c6afe
6 files changed
+75
-20
No files matched your search
@@ -14,6 +14,7 @@ PW_M="multimedia123"
|
||||
SYNC_MEDIA=0
|
||||
SYNC_RECIPIES=1
|
||||
SYNC_MEDIA_ONLY=0
|
||||
SYNC_ALINA=1
|
||||
SYNC_THEMES=0
|
||||
SILENT=true
|
||||
SERVER="https://someoneslinux.ddns.net"
|
||||
@@ -29,6 +30,11 @@ while [[ ${1:0:1} == - ]]; do
|
||||
shift 1;
|
||||
continue;
|
||||
};
|
||||
[[ $1 == -al ]] && {
|
||||
SYNC_ALINA=0;
|
||||
shift 1;
|
||||
continue;
|
||||
};
|
||||
[[ $1 == -m ]] && {
|
||||
SYNC_MEDIA=1;
|
||||
shift 1;
|
||||
@@ -70,6 +76,12 @@ else
|
||||
ret=$(( ret + $? ))
|
||||
#echo Return: $ret
|
||||
fi
|
||||
if [[ ${SYNC_ALINA} -eq 0 ]];then
|
||||
echo "Sync Alina"
|
||||
run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Shared/Alina/Wachstum /home/lucas/Documents/Dokumente/Shared/Alina/Wachstum ${SERVER}
|
||||
ret=$(( ret + $? ))
|
||||
#echo Return: $ret
|
||||
fi
|
||||
if [[ ${SYNC_RECIPIES} -eq 0 ]];then
|
||||
echo "Sync Recipies"
|
||||
run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Shared/Diverses/Kochbuch/RecepiesLucas /home/lucas/Documents/Dokumente/Shared/Diverses/Kochbuch/RecepiesLucas ${SERVER}
|
||||
|
||||
Reference in new issue
Block a user