Manage variables via systemd override config #4

Merged
thib8956 merged 5 commits from systemd-override-config into master 2019-11-13 23:13:09 +00:00
3 changed files with 66 additions and 0 deletions
Showing only changes of commit bff9db860a - Show all commits

15
backup.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Borg backup
[Service]
Type=oneshot
Environment=BORG_REPO=/mnt/data/thibaud/backups/S551LN/S551LN.borg/
Environment=BORG_HOSTNAME_IS_UNIQUE=yes
Environment=BORG_PASSPHRASE=***REMOVED***
Environment=BORG_KEY_FILE=/home/thibaud/.config/borg/keys/S551LN_borg.2
Nice=19
ExecStart=/usr/local/bin/borg create --list --stats --filter AME --exclude-from=/mnt/data/thibaud/backups/S551LN/exclude-list-S551LN.txt ::{now} /
ExecStartPost=/usr/local/bin/borg prune -v --list --keep-daily=7 --keep-weekly=4 --keep-monthly=6 --keep-within 2d --stats ::
[Install]
WantedBy=multi-user.target

9
backup.timer Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Borgbackup
[Timer]
OnBootSec=30min
OnCalendar=0/4:00:00
[Install]
WantedBy=timers.target

42
exclude-list-S551LN.txt Normal file
View File

@ -0,0 +1,42 @@
/proc
/sys
/dev
/media
/mnt
/cdrom
/tmp
/run
/var/cache
/var/tmp
/var/run
/home/*/.thumbnails
/home/*/.cache/chromium
/home/*/.cache/mozilla
/home/*/.cache/wine
/home/*/.steam/steam/steamapps
/home/*/.steam/steam/config/htmlcache
/home/*/.local/share/Trash
/home/*/.mozilla/firefox/*.default/Cache
/home/*/.gvfs
/swapfile
/var/lib/flatpak/repo/
/home/*/.cache
/home/*/.m2
/home/*/Vidéos
/home/*/Musique
/home/*/Téléchargements
/home/*/Virtualbox_VMS
/home/*/ISO
/home/*/Android
/mnt/data/thibaud/backups
/mnt/data/thibaud/Vidéos
/mnt/data/thibaud/Musique
/mnt/data/thibaud/Téléchargements
/mnt/data/thibaud/Virtualbox_VMS
/mnt/data/thibaud/tmp
/mnt/data/thibaud/ISO
/mnt/data/thibaud/Android
*.!qB