Excludes in own variable, exclude backups
| | |
| | | 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 |
| | |
| | | elif [ "$1" = "cron" ]; then |
| | | borg create \ |
| | | --compression zstd,22 \ |
| | | --exclude '*~' \ |
| | | --exclude '*#*' \ |
| | | $EXCLUDES \ |
| | | \ |
| | | $BACKUP_DIR::"$(date +%F+%R)" \ |
| | | $FILES_DIR |
| | |
| | | --verbose \ |
| | | --stats \ |
| | | --compression zstd,22 \ |
| | | --exclude '*~' \ |
| | | --exclude '*#*' \ |
| | | $EXCLUDES \ |
| | | \ |
| | | $BACKUP_DIR::"$(date +%F+%R)" \ |
| | | $FILES_DIR |