2019-03-25 23:14:11 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Back up chosty's documents
|
2019-03-25 23:49:01 +01:00
|
|
|
OnFailure=notify-backup-failure.service
|
2019-03-25 23:14:11 +01:00
|
|
|
|
|
|
|
[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
|
2019-05-01 23:54:55 +02:00
|
|
|
# For some reason, exclude should be relative path (cf man), but this does not work for the first command. Dunno why
|
|
|
|
ExecStart=/usr/bin/rsync -vCRErtm --delete --delete-excluded --modify-window=10 --include="/home/chosty/.config" --exclude="/home/chosty/.*" --exclude="/home/chosty/aur" --exclude="/home/chosty/git" /home/chosty /mnt/backup/Linux
|
|
|
|
ExecStart=/usr/bin/rsync -vCErtm --delete --delete-excluded --modify-window=10 --exclude="/Documents/Jeux" /mnt/data/Documents /mnt/data/Images /mnt/data/Vidéos /mnt/backup/Data/
|