Compare commits
2 Commits
9940d5051d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d99420aa6e | ||
|
|
f5ec4ff46e |
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=rsnapshot daily backup
|
||||
PartOf=rsnapshot-schedule.target
|
||||
Before=rsnapshot-weekly.timer rsnapshot-monthly.timer
|
||||
|
||||
[Timer]
|
||||
# 05:30 is the clock time when to start it
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=rsnapshot hourly backup
|
||||
PartOf=rsnapshot-schedule.target
|
||||
Before=rsnapshot-daily.timer rsnapshot-weekly.timer rsnapshot-monthly.timer
|
||||
|
||||
[Timer]
|
||||
# Run hourly
|
||||
|
||||
@@ -3,6 +3,7 @@ Description=rsnapshot scheduled backup
|
||||
Wants=rsnapshot-hourly.timer rsnapshot-daily.timer rsnapshot-weekly.timer rsnapshot-monthly.timer
|
||||
After=default.target
|
||||
Requires=run-media-bryan-sd\x2dhomebackup.mount
|
||||
ConditionACPower=true
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=rsnapshot weekly backup
|
||||
PartOf=rsnapshot-schedule.target
|
||||
Before=rsnapshot-monthly.timer
|
||||
|
||||
[Timer]
|
||||
# Run once per week on Monday at 4:30, after daily runs
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
Description=rsnapshot (%I) backup
|
||||
After=run-media-bryan-sd\x2dhomebackup.mount
|
||||
Requires=run-media-bryan-sd\x2dhomebackup.mount
|
||||
ConditionACPower=true
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
PIDFile=%h/.config/systemd/user/rsnapshot.pid
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/bin/rsnapshot -c %h/.config/systemd/user/rsnapshot.conf %I
|
||||
|
||||
|
||||
Reference in New Issue
Block a user