borgmatic-base/scripts/pre_gitea
2021-09-02 13:48:53 -04:00

7 lines
212 B
Bash
Executable file

#!/bin/bash
giteaDir="${HOME}/.borgmatic/gitea"
backupDate=$(date +"%Y-%m-%d")
mkdir -p "$giteaDir"
sudo -u git /home/gitea/bin/gitea dump --type tar.xz --file - > "${giteaDir}/gitea-dump-${backupDate}.tar.xz"