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:34:41 +02:00
|
|
|
ExecStart=/usr/bin/rsync -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 /home/chosty /mnt/backup/Linux
|
|
|
|
ExecStart=/usr/bin/rsync -CErtm --delete --modify-window=10 --exclude /Jeux /mnt/data/Documents /mnt/data/Images /mnt/data/Vidéos /mnt/backup/Data/
|