feat: add scheduled backups with borg
This commit is contained in:
parent
7c897dbfc2
commit
edb34572a0
4 changed files with 73 additions and 0 deletions
6
systemd/.config/systemd/user/backups.service
Normal file
6
systemd/.config/systemd/user/backups.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Backup this computer to a remote server
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/backups.sh
|
9
systemd/.config/systemd/user/backups.timer
Normal file
9
systemd/.config/systemd/user/backups.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Backup this computer to a remote server
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=15m
|
||||
Unit=backups.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
1
systemd/.config/systemd/user/timers.target.wants/backups.timer
Symbolic link
1
systemd/.config/systemd/user/timers.target.wants/backups.timer
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/bca/.config/systemd/user/backups.timer
|
Loading…
Add table
Add a link
Reference in a new issue