random-scripts/backup-keepassxc-db.sh

5 lines
195 B
Bash
Executable File

#!/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"