From f7535dfe36844d94aad3f34cd861cb29fe62b142 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 9 May 2023 00:56:37 -0700 Subject: [PATCH] Added backup-keepassxc-db.sh --- backup-keepassxc-db.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 backup-keepassxc-db.sh diff --git a/backup-keepassxc-db.sh b/backup-keepassxc-db.sh new file mode 100755 index 0000000..15f2f9e --- /dev/null +++ b/backup-keepassxc-db.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env zsh +local datetime="$(date +'d%d-%m-%Y_t%H-%M-%S')" +local filename="keepassxc-db-backup-${datetime}.tar.gz" +tar -caf "${HOME}/nextcloud/KeePassXC/${filename}" "${HOME}/.keepassxc"