Compare commits
4 Commits
7d8586a8eb
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d99420aa6e | ||
|
|
f5ec4ff46e | ||
|
|
9940d5051d | ||
|
|
0ca6dffc8b |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
**/
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -158,8 +158,8 @@ rsync_long_args --delete
|
|||||||
# The include and exclude parameters, if enabled, simply get passed directly
|
# The include and exclude parameters, if enabled, simply get passed directly
|
||||||
# to rsync. If you have multiple include/exclude patterns, put each one on a
|
# to rsync. If you have multiple include/exclude patterns, put each one on a
|
||||||
# separate line. Please look up the --include and --exclude options in the
|
# separate line. Please look up the --include and --exclude options in the
|
||||||
# rsync man page for more details on how to specify file name patterns.
|
# rsync man page for more details on how to specify file name patterns.
|
||||||
#
|
#
|
||||||
#include ???
|
#include ???
|
||||||
#include ???
|
#include ???
|
||||||
#exclude ???
|
#exclude ???
|
||||||
@@ -225,10 +225,10 @@ exclude_file /home/bryan/.config/systemd/user/rsnapshot-home-excludes.txt
|
|||||||
###############################
|
###############################
|
||||||
|
|
||||||
# LOCALHOST
|
# LOCALHOST
|
||||||
backup /home/bryan/ localhost/
|
backup /home/bryan/ localhost/
|
||||||
#backup /etc/ localhost/
|
#backup /etc/ localhost/
|
||||||
#backup /usr/local/ localhost/
|
#backup /usr/local/ localhost/
|
||||||
#backup /var/log/rsnapshot localhost/
|
#backup /var/log/rsnapshot localhost/
|
||||||
#backup /etc/passwd localhost/
|
#backup /etc/passwd localhost/
|
||||||
#backup /home/foo/My Documents/ localhost/
|
#backup /home/foo/My Documents/ localhost/
|
||||||
#backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
|
#backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user