From 38caa9cefa47ac2d9e7257bbb5234dd3d2f6311f Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sat, 11 Nov 2017 12:59:03 -0500 Subject: [PATCH] remove systemd service --- README.md | 16 ---------------- systemd/snap-sync@.service | 9 --------- systemd/snap-sync@.timer | 10 ---------- 3 files changed, 35 deletions(-) delete mode 100644 systemd/snap-sync@.service delete mode 100644 systemd/snap-sync@.timer diff --git a/README.md b/README.md index 7fa7da0..bb17115 100644 --- a/README.md +++ b/README.md @@ -59,22 +59,6 @@ The first time you run `snap-sync` for a particular disk (new UUID) you will be prompted to choose a backup location on that disk. If the directory you specify does not exist, it will be created. -## Systemd unit and timer - -A systemd unit and timer are included. These are instantiated units. You need to -specify the UUID of the disk to back up to in the `systemctl` call. Note, once -again, the disk **must** be mounted, and it **must** only be mounted in one -place. Example: - - # systemctl start snap-sync@7360922b-c916-4d9f-a670-67fe0b91143c - -The timer included is weekly. Edit both files to your taste. - -You can exclude a configuration from backup by setting `SNAP_SYNC_EXCLUDE=yes` -in your snapper configuration file. Additionally you should run snap-sync at -least once for a new disk without using the service so you can be prompted for -the backup location. - ## Example command line usage ### No arguments diff --git a/systemd/snap-sync@.service b/systemd/snap-sync@.service deleted file mode 100644 index b3317e1..0000000 --- a/systemd/snap-sync@.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Run snap-sync backup (UUID: %i) - -[Install] -WantedBy=multi-user.target - -[Service] -Type=simple -ExecStart=/usr/bin/snap-sync --UUID %i --noconfirm diff --git a/systemd/snap-sync@.timer b/systemd/snap-sync@.timer deleted file mode 100644 index 562541c..0000000 --- a/systemd/snap-sync@.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Run snap-sync weekly (UUID %i) - -[Timer] -OnCalendar=weekly -AccuracySec=12h -Persistent=true - -[Install] -WantedBy=timers.target