diff --git a/btrfish.service b/btrfish.service new file mode 100644 index 0000000..06f3613 --- /dev/null +++ b/btrfish.service @@ -0,0 +1,10 @@ +[Unit] +Description=Create incremental btrfs backups and push them to a backup host + +[Service] +User=backups +Type=oneshot +ExecStart=/var/backups/backup.fish + +[Install] +WantedBy=default.target diff --git a/btrfish.timer b/btrfish.timer new file mode 100644 index 0000000..d66bece --- /dev/null +++ b/btrfish.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Run btrfish.serivce daily + +[Timer] +OnCalendar=daily + +[Install] +WantedBy=default.target