(SystemD)+very simple backup service
Timer which runs weekly, copying my directory completely. Very naive, I'm thinking compression should be my first effort.
This commit is contained in:
6
SystemD/.config/systemd/user/backup.service
Normal file
6
SystemD/.config/systemd/user/backup.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Taking backup
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/rsync -a --delete --quiet /home/oreo /media/hdd/backup
|
||||
9
SystemD/.config/systemd/user/backup.timer
Normal file
9
SystemD/.config/systemd/user/backup.timer
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run backup weekly
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=1w
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user