Doesn't need anymore config location

config is now stored in custom/conf/app.ini so it is now backuped with the other files and you don't need to give the location of this file to run the gitea executable file
This commit is contained in:
Romain de Laage 2020-07-11 08:14:14 +02:00
parent cd9b28c324
commit 410f9cf3c2
1 changed files with 1 additions and 2 deletions

View File

@ -1,14 +1,13 @@
#! /bin/sh
DATE=`date +%m-%d-%Y`
CONFIGFILE="CHANGEME"
SSH_HOST="CHANGEME"
echo "Sauvegarde de Gitea le "$DATE
#Exécution du backup de Gitea
echo "Exécution du backup de Gitea"
ssh $SSH_HOST sudo -u git /DATA/gitea/gitea-latest dump -f /tmp/gitea-$DATE.zip -c $CONFIGFILE
ssh $SSH_HOST sudo -u git /DATA/gitea/gitea-latest dump -f /tmp/gitea-$DATE.zip
#Copie du fichier de backup distant en local
echo "Copie du fichier de backup distant en local"