diff --git a/bin/.local/bin/backup.sh b/bin/.local/bin/backup.sh index f7234b1..3852510 100755 --- a/bin/.local/bin/backup.sh +++ b/bin/.local/bin/backup.sh @@ -32,6 +32,7 @@ rsync-cmd() { export BORG_REPO="tria.waarp.org:~/borg-backups" export BORG_PASSCOMMAND='secret-tool lookup borg passphrase' +export BORG_RSH="ssh -i $HOME/.ssh/bca-work-worklaptop" borg create \ --verbose \ @@ -47,7 +48,7 @@ borg create \ borg prune \ --list \ --show-rc \ - --keep-hourly 24 \ + --keep-hourly 24 \ --keep-daily 7 \ --keep-weekly 4 \ --keep-monthly 6 \ diff --git a/systemd/.config/systemd/user/backups.service b/systemd/.config/systemd/user/backups.service index 22bef9d..d7ac080 100644 --- a/systemd/.config/systemd/user/backups.service +++ b/systemd/.config/systemd/user/backups.service @@ -3,4 +3,4 @@ Description=Backup this computer to a remote server [Service] Type=oneshot -ExecStart=%h/.local/bin/backups.sh +ExecStart=%h/.local/bin/backup.sh diff --git a/systemd/.config/systemd/user/backups.timer b/systemd/.config/systemd/user/backups.timer index 9fb589c..220d2ae 100644 --- a/systemd/.config/systemd/user/backups.timer +++ b/systemd/.config/systemd/user/backups.timer @@ -1,7 +1,8 @@ [Unit] -Description=Backup this computer to a remote server +Description=Backup this computer every 15m [Timer] +OnBootSec=5m OnUnitActiveSec=15m Unit=backups.service