linuxShortcuts/Services/backup-gitea.sh
2022-10-07 08:40:50 -03:00

6 lines
221 B
Bash
Executable File

#!/usr/bin/env bash
cd /home/brunofontes/ttt/
sudo -u git GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea dump -c /etc/gitea/app.ini
chown brunofontes:brunofontes *.zip
find ./ -type f -name "*.zip" -mtime +2 -delete