update scripts

master
Roger Pàmies Fabra 3 months ago
parent 33b0fd79ac
commit 3c1f6bdd00
  1. 2
      backup_db.sh
  2. 2
      backup_dir.sh
  3. 3
      backup_inc.sh

@ -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

@ -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

@ -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)

Loading…
Cancel
Save