From 7b9e748ff654e9dbda7e4ddf2618baf207aa6375 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 26 Mar 2019 01:04:26 +0100 Subject: [PATCH] Backup weekly and adjust exclude directories --- .config/systemd/backup.service.desk | 4 ++-- .config/systemd/backup.timer.desk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/systemd/backup.service.desk b/.config/systemd/backup.service.desk index 4ece3d5..533b5f5 100644 --- a/.config/systemd/backup.service.desk +++ b/.config/systemd/backup.service.desk @@ -6,5 +6,5 @@ OnFailure=notify-backup-failure.service Type=oneshot # Cannot use -a as FAT32 does not support permission. Also don't use -g and -l (FAT32 does not support groups and symlinks) # Do not use full path and relax timestamp, otherwise all files are copied over -ExecStart=/usr/bin/rsync /home/chosty -CRErtm --delete --modify-window=10 --exclude=.cache --exclude=.cfg --exclude=.eclipse --exclude=.electron-gyp --exclude=.npm --exclude=.nv --exclude=.pEp --exclude=.scenari --exclude=.swt --exclude=.local --exclude=.minecraft --exclude=.mozilla --exclude=.thumbnails --exclude=.oh-my-zsh --exclude=.var --exclude=.log /mnt/backup/Linux -#ExecStart=/usr/bin/rsync /mnt/data/Documents /mnt/data/Images /mnt/data/Vidéos -CErtm --delete --modify-window=10 /mnt/backup/Data/ +ExecStart=/usr/bin/rsync /home/chosty -CRErtm --delete --modify-window=10 --exclude=.cache --exclude=.cfg --exclude=.eclipse --exclude=.electron-gyp --exclude=.npm --exclude=.nv --exclude=.pEp --exclude=.scenari --exclude=.swt --exclude=.local --exclude=.minecraft --exclude=.mozilla --exclude=.thumbnails --exclude=.oh-my-zsh --exclude=.var --exclude=.log --exclude=aur /mnt/backup/Linux +ExecStart=/usr/bin/rsync /mnt/data/Documents /mnt/data/Images /mnt/data/Vidéos -CErtm --delete --modify-window=10 --exclude=Jeux /mnt/backup/Data/ diff --git a/.config/systemd/backup.timer.desk b/.config/systemd/backup.timer.desk index c7929c2..922d27b 100644 --- a/.config/systemd/backup.timer.desk +++ b/.config/systemd/backup.timer.desk @@ -2,7 +2,7 @@ Description=Run backup daily [Timer] -OnCalendar=daily +OnCalendar=weekly Persistent=true [Install]