7 lines
212 B
Bash
Executable file
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"
|