Files
Server-scripts/serverhost/.syncNC.sh.swo
T

19 lines
20 KiB
Plaintext
Raw Normal View History

2026-08-06 10:35:33 +02:00
b0VIM 9.1Íaj³‹xlucasserverhost~lucas/scripts/serverhost/syncNC.shutf-8
U3210#"! U
Ñ
Ï
¸
‘
v
^
X
L
?
:



Õ ± ¬ • … } [ A €iSNïûå༧øáËÆŸ‡Ÿ‰„E.‹èÑ»ŒsôÝÇÂÅ fi #echo Return: $ret ret=$(( ret + $? )) run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Media/Stuff/Wallpaper /torrent/WallpaperChanger ${SERVER} echo "Sync Wallpaper" if [[ ${SYNC_MEDIA_ONLY} -eq 0 ]]; then fi #echo Return: $ret ret=$(( ret + $? )) run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Projekte/Server /home/lucas/Documents/Dokumente/Projekte/Server ${SERVER} # echo "nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Projekte/Server /home/lucas/Documents/Dokumente/Projekte/Server ${SERVER}" echo "Sync Server" if [[ "$1" != "-W" ]] && [[ ${SYNC_MEDIA_ONLY} -eq 0 ]];then fi #echo Return: $ret ret=$(( ret + $? )) run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Shared/Diverses/Kochbuch/RecepiesLucas /home/lucas/Documents/Dokumente/Shared/Diverses/Kochbuch/RecepiesLucas ${SERVER} echo "Sync Recipies" if [[ ${SYNC_RECIPIES} -eq 0 ]];then fi #echo Return: $ret ret=$(( ret + $? )) run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Shared/Alina/Wachstum /home/lucas/Documents/Dokumente/Shared/Alina/Wachstum ${SERVER} echo "Sync Alina" if [[ ${SYNC_ALINA} -eq 0 ]];then fi #echo Return: $ret ret=$(( ret + $? )) run_cmd nextcloudcmd --trust --user lucas --password ${PW} --path Dokumente/Dokumente/Projekte/Handy/ThemeProject/SolarSystemTheme /home/lucas/Documents/Dokumente/Projekte/Handy/ThemeProject/SolarSystemTheme ${SERVER} echo "Sync Themes" if [[ ${SYNC_THEMES} -eq 1 ]] && [[ ${SYNC_MEDIA_ONLY} -eq 0 ]]; then fi #echo Return: $ret ret=$(( ret + $? )) run_cmd sudo /home/lucas/scripts/serverhost/tvbitch_user_cmd.sh nextcloudcmd --logdebug --trust --user multimedia --password ${PW_M} --path Filme/New /torrent/multimedia/Filme/New ${SERVER} echo "Sync Multmedia" if [ ${SYNC_MEDIA} -eq 1 ];then ret=0 while true; do echo "Sync Nextcloud"else echo "Nextcloud Sync active, stop"if pgrep -x "nextcloudcmd" > /dev/null; then done shift 1; echo "Parameter $1 discarded" }; continue; shift 1; fi echo "File removed" rm /tmp/nextcloud_sync if [ -f /tmp/nextcloud_sync ]; then [[ $1 == -del ]] && { }; continue; shift 1; SYNC_THEMES=1; [[ $1 == -t ]] && { }; continue; shift 1; SYNC_MEDIA=1; [[ $1 == -m ]] && { }; continue; shift 1; SYNC_ALI=0; [[ $1 == -d ]] && { }; continue; shift 1; SYNC_MEDIA_ONLY=1; [[ $1 == -o ]] && { }; continue; shift 1; SILENT=false; [[ $1 == -l ]] && { echo "Param: $1"while [[ ${1:0:1} == - ]]; doSERVER="https://someoneslinux.ddns.net"SILENT=trueSYNC_THEMES=0SYNC_ALINA=1SYNC_MEDIA_ONLY=0SYNC_RECIPIES=1SYNC_MEDIA=0PW_M="multimedia123"PW=$(cat /home/lucas/.PW)count=20ret=0} fi "$@" 2>&1 | tee ~/sync.log else "$@" > ~/sync.log 2>&1 if [[ "$SILENT" == "true" ]]; then #echo $@run_cmd() {#!/bin/bashadä4ÞÌà‰~vg\WIC@43