diff options
author | Matt Singleton <matt@xcolour.net> | 2024-04-12 16:06:30 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2024-04-12 16:06:30 -0500 |
commit | 4008fa4f12d6688c580a78980e4722899a84498c (patch) | |
tree | 8f200c8118fa7c87d5b270741f659cf6b4d818ae /stow | |
parent | f2dfde23f8157da1532a2b2e236af529fed47713 (diff) |
Update Makefile to manage fedora/sway-de config
Diffstat (limited to 'stow')
-rwxr-xr-x | stow/duplicity/.local/bin/backup | 27 | ||||
-rw-r--r-- | stow/duplicity/.local/share/systemd/user/backup.service | 7 | ||||
-rw-r--r-- | stow/duplicity/.local/share/systemd/user/backup.timer | 9 |
3 files changed, 0 insertions, 43 deletions
diff --git a/stow/duplicity/.local/bin/backup b/stow/duplicity/.local/bin/backup deleted file mode 100755 index 6324c05..0000000 --- a/stow/duplicity/.local/bin/backup +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -set -o allexport -# shellcheck source=../../.config/duplicity/config -source ~/.config/duplicity/config -set +o allexport - -source_directory=~ -excludes=~/.config/duplicity/excludes -target_url=b2://"$B2_KEY_ID"@"$B2_BUCKET" - -# take a new full backup every month, incremental otherwise -duplicity backup --full-if-older-than 1M --exclude-filelist "$excludes" "$source_directory" "$target_url" - -# keep 12 months of full backups -duplicity remove-all-but-n-full 12 --force "$target_url" - -# keep 3 months of incremental backups -duplicity remove-all-inc-of-but-n-full 3 --force "$target_url" - -# cleanup -duplicity cleanup --force "$target_url" - -# show collection status -duplicity collection-status "$target_url" diff --git a/stow/duplicity/.local/share/systemd/user/backup.service b/stow/duplicity/.local/share/systemd/user/backup.service deleted file mode 100644 index c1adfde..0000000 --- a/stow/duplicity/.local/share/systemd/user/backup.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Backup with duplicity -After=network.target - -[Service] -Type=oneshot -ExecStart=bash ${HOME}/.local/bin/backup diff --git a/stow/duplicity/.local/share/systemd/user/backup.timer b/stow/duplicity/.local/share/systemd/user/backup.timer deleted file mode 100644 index b7815d6..0000000 --- a/stow/duplicity/.local/share/systemd/user/backup.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Run backup every four hours - -[Timer] -OnCalendar=*-*-* 0/4:15 -Persistent=true - -[Install] -WantedBy=timers.target |