8 lines
212 B
Text
8 lines
212 B
Text
|
#!/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"
|