Skip to content

Instantly share code, notes, and snippets.

@dolohow
Last active June 9, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolohow/d7cb77c3771e45d41b9b86cbe5373b6b to your computer and use it in GitHub Desktop.
Save dolohow/d7cb77c3771e45d41b9b86cbe5373b6b to your computer and use it in GitHub Desktop.
[Unit]
Description=Backups via rsync
[Service]
ExecStart=/bin/true
ExecStop=/usr/bin/rsync -aAX --exclude-from=/mnt/backup/ryszard/.exclude /home/ryszard /mnt/backup
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment