borgmatic-base/scripts/pre_gitea

8 lines
212 B
Plaintext
Raw Normal View History

2021-09-02 13:48:53 -04:00
#!/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"