From fddd8e84ddd3ae339b5c6f40f974123cab3dfbf5 Mon Sep 17 00:00:00 2001 From: Vasili Sviridov Date: Sun, 25 Dec 2022 14:06:50 -0800 Subject: [PATCH] Switch to hourly, added README --- README.md | 13 +++++++++++++ backup-bitwarden.sh | 2 +- backup-bitwarden.timer | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cd6f30c --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +## Backup Scripts + +### Requirements + +* systemd +* [AWS client](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) + +### Install + +* Run `aws configure` +* Symlink unit files to `/etc/systemd/system` +* Run `systemctl enable` on units and slices +* Run `systemctl start` on timers diff --git a/backup-bitwarden.sh b/backup-bitwarden.sh index 5132cb3..cad8bcc 100755 --- a/backup-bitwarden.sh +++ b/backup-bitwarden.sh @@ -2,7 +2,7 @@ set -euo pipefail -dumpfile="dump.sql.custom" +dumpfile="dump.sql" tmpdir="$(mktemp -d -p "${PWD}")" diff --git a/backup-bitwarden.timer b/backup-bitwarden.timer index b9452a4..1b542d0 100644 --- a/backup-bitwarden.timer +++ b/backup-bitwarden.timer @@ -3,7 +3,7 @@ Description=Runs bitwarden backup on a schedule [Timer] Unit=backup-bitwarden.service -OnCalendar=daily +OnCalendar=hourly Persistent=true [Install]