From d9804a00d1d2164f5c25d743d18bd4f6a8776f31 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 6 May 2020 00:01:37 +0200 Subject: Added automatic backup script This is WIP and should not be used by anybody until I have fixed hard coded paths and stuff like that. The idea of this script is: Once you plug a disk drive in, it will automatically be backed up, but only if a zfs dataset with the name of that drive already exists. --- backup/systemd/max-backup@.service | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 backup/systemd/max-backup@.service (limited to 'backup/systemd/max-backup@.service') diff --git a/backup/systemd/max-backup@.service b/backup/systemd/max-backup@.service new file mode 100644 index 0000000..44c6bf8 --- /dev/null +++ b/backup/systemd/max-backup@.service @@ -0,0 +1,8 @@ +[Unit] +Description=Generic backup + +[Service] +Type=simple +ExecStart=/home/max/backup/backup.sh %I + + -- cgit v1.2.3