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]