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:
parent
cd9b28c324
commit
410f9cf3c2
3
gitea.sh
3
gitea.sh
|
@ -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"
|
||||
|
|
Reference in New Issue