update scripts

This commit is contained in:
Roger Pàmies Fabra 2022-07-15 00:24:01 +02:00
parent 33b0fd79ac
commit 3c1f6bdd00
3 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,8 @@ PATH_LOCAL_BACKUPS=$2
REMOTE_SERVER=$3
REMOTE_PATH=$4
ssh $REMOTE_SERVER "mkdir -p $REMOTE_PATH"
echo "\n[NEW BACKUP TASK] Backup database nextcloud...\n" >> $LOG_FILE
# dump and backup db nextcloud handycat and rsync deleting origin

View File

@ -12,6 +12,8 @@ PATH_LOCAL_BACKUPS=$2
REMOTE_SERVER=$3
REMOTE_PATH=$4
ssh $REMOTE_SERVER "mkdir -p $REMOTE_PATH"
echo "\n[NEW BACKUP TASK] Backup install dir nextcloud...\n" >> $LOG_FILE
# tar and backup install dir nextcloud, excluding data folder and finally rsync deleting origin

View File

@ -18,9 +18,10 @@ cat > $EXCLUDE_FILE <<EOF
files_trashbin
nextcloud.log
updater.log
EOF
ssh $REMOTE_SERVER "mkdir -p $REMOTE_PATH"
echo "\n[NEW BACKUP TASK] Backup cloud new/modified files of last day (incremental)\n" >> $LOG_FILE
# rsync of new files last day into nextcloud every day (incremental)