feat(backups): add automated backups
This commit is contained in:
parent
d1248694db
commit
a9f196e0aa
3 changed files with 5 additions and 3 deletions
|
@ -32,6 +32,7 @@ rsync-cmd() {
|
||||||
|
|
||||||
export BORG_REPO="tria.waarp.org:~/borg-backups"
|
export BORG_REPO="tria.waarp.org:~/borg-backups"
|
||||||
export BORG_PASSCOMMAND='secret-tool lookup borg passphrase'
|
export BORG_PASSCOMMAND='secret-tool lookup borg passphrase'
|
||||||
|
export BORG_RSH="ssh -i $HOME/.ssh/bca-work-worklaptop"
|
||||||
|
|
||||||
borg create \
|
borg create \
|
||||||
--verbose \
|
--verbose \
|
||||||
|
|
|
@ -3,4 +3,4 @@ Description=Backup this computer to a remote server
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=%h/.local/bin/backups.sh
|
ExecStart=%h/.local/bin/backup.sh
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Backup this computer to a remote server
|
Description=Backup this computer every 15m
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
|
OnBootSec=5m
|
||||||
OnUnitActiveSec=15m
|
OnUnitActiveSec=15m
|
||||||
Unit=backups.service
|
Unit=backups.service
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue