dotfiles/systemd/tarsnap.service
2020-06-29 00:01:39 +02:00

13 lines
320 B
Desktop File

# systemctl enable /path/to/this/unit-file
[Unit]
Description=Backup documents folder to Tarsnap
Wants=tarsnap.timer
[Service]
ExecStart=/bin/sh -c "/usr/bin/tarsnap -c --print-stats -f \"$(uname -n)-$(date +%%Y-%%m-%%d_%%H-%%M-%%S)\" /home/rob/Documents/"
WorkingDirectory=/root
[Install]
WantedBy=multi-user.target