Compare commits

...

4 Commits

Author SHA1 Message Date
cryobry
d99420aa6e Require AC power at target level 2020-06-07 13:13:41 -04:00
cryobry
f5ec4ff46e Fix ordering for conflicts 2020-06-07 12:57:40 -04:00
cryobry
9940d5051d Fix rsnapshot-schedule.target 2020-04-28 14:59:05 -04:00
cryobry
0ca6dffc8b Add .gitignore 2020-04-28 14:58:27 -04:00
7 changed files with 14 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
**/

View File

@@ -1,6 +1,7 @@
[Unit] [Unit]
Description=rsnapshot daily backup Description=rsnapshot daily backup
PartOf=rsnapshot-schedule.target PartOf=rsnapshot-schedule.target
Before=rsnapshot-weekly.timer rsnapshot-monthly.timer
[Timer] [Timer]
# 05:30 is the clock time when to start it # 05:30 is the clock time when to start it

View File

@@ -1,6 +1,7 @@
[Unit] [Unit]
Description=rsnapshot hourly backup Description=rsnapshot hourly backup
PartOf=rsnapshot-schedule.target PartOf=rsnapshot-schedule.target
Before=rsnapshot-daily.timer rsnapshot-weekly.timer rsnapshot-monthly.timer
[Timer] [Timer]
# Run hourly # Run hourly

View File

@@ -3,3 +3,7 @@ Description=rsnapshot scheduled backup
Wants=rsnapshot-hourly.timer rsnapshot-daily.timer rsnapshot-weekly.timer rsnapshot-monthly.timer Wants=rsnapshot-hourly.timer rsnapshot-daily.timer rsnapshot-weekly.timer rsnapshot-monthly.timer
After=default.target After=default.target
Requires=run-media-bryan-sd\x2dhomebackup.mount Requires=run-media-bryan-sd\x2dhomebackup.mount
ConditionACPower=true
[Install]
WantedBy=default.target

View File

@@ -1,6 +1,7 @@
[Unit] [Unit]
Description=rsnapshot weekly backup Description=rsnapshot weekly backup
PartOf=rsnapshot-schedule.target PartOf=rsnapshot-schedule.target
Before=rsnapshot-monthly.timer
[Timer] [Timer]
# Run once per week on Monday at 4:30, after daily runs # Run once per week on Monday at 4:30, after daily runs

View File

@@ -2,14 +2,12 @@
Description=rsnapshot (%I) backup Description=rsnapshot (%I) backup
After=run-media-bryan-sd\x2dhomebackup.mount After=run-media-bryan-sd\x2dhomebackup.mount
Requires=run-media-bryan-sd\x2dhomebackup.mount Requires=run-media-bryan-sd\x2dhomebackup.mount
ConditionACPower=true
[Service] [Service]
Type=oneshot Type=oneshot
Nice=19 Nice=19
IOSchedulingClass=idle IOSchedulingClass=idle
PIDFile=%h/.config/systemd/user/rsnapshot.pid PIDFile=%h/.config/systemd/user/rsnapshot.pid
Restart=on-failure
ExecStart=/usr/bin/rsnapshot -c %h/.config/systemd/user/rsnapshot.conf %I ExecStart=/usr/bin/rsnapshot -c %h/.config/systemd/user/rsnapshot.conf %I