From 3413cfb34e2f7ac770c4823b08fbc4d942ae62f7 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 13 Jul 2021 14:27:10 +0000 Subject: [PATCH] update mirrored repos --- backup.sh | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backup.sh b/backup.sh index 5cbe8b5..83a2b73 100755 --- a/backup.sh +++ b/backup.sh @@ -4,6 +4,7 @@ FILES_DIR="/home/joel/OneDrive/" RCLONE_BACKUP=("GoogleDrive" "Mega" "unimelb" "pCloud" "gdrive_unimelb" "NC_home" "NextCloud") RCLONE_FILES=("Mega" "unimelb" "gdrive_unimelb" "NC_home") +EXCLUDES="--exclude '*~' --exclude '*#*' --exclude '.DS_Store' --exclude '*.7z' " function sync() { case $1 in @@ -47,20 +48,18 @@ sync_all p exit elif [ "$1" = "cron" ]; then - borg create \ + borg create \ --compression zstd,22 \ - --exclude '*~' \ - --exclude '*#*' \ + $EXCLUDES \ \ $BACKUP_DIR::"$(date +%F+%R)" \ $FILES_DIR else - borg create \ + borg create \ --verbose \ --stats \ --compression zstd,22 \ - --exclude '*~' \ - --exclude '*#*' \ + $EXCLUDES \ \ $BACKUP_DIR::"$(date +%F+%R)" \ $FILES_DIR -- Gitblit v1.9.3