backup revision

This commit is contained in:
2025-03-18 00:11:15 +00:00
parent 4929cf97b7
commit 927e0a8a80
6 changed files with 90 additions and 10 deletions

View File

@@ -18,16 +18,16 @@ spec:
command: ["sh", "-c"]
args:
- |
echo "INFO: Starting export"
#echo "INFO: Starting export"
. /root/.gitea-inline-config/database
export PGPASSWORD=$PASSWD
echo "INFO: Exporting database"
#echo "INFO: Exporting database"
pg_dump -h gitea-postgresql.git-limbosolutions-com.svc.cluster.local -U $USER -d $NAME > /data/postgresql-export/db_backup.sql
if [ $? -ne 0 ]; then
echo "ERROR: Exporting database failed"
exit 1
fi
echo "INFO: Exporting database finished"
#echo "INFO: Exporting database finished"
volumeMounts:
@@ -86,7 +86,7 @@ spec:
${BORG_RSH} mf@backupsrv01.dev.lan \
"rclone sync ~/borg-repos/git.limbosolutions.com mf.onedrive:.backups/git.limbosolutions.com/borg" &&
echo "INFO: borg repo offsite sync finished"
echo "INFO: Backup git.limbosolutions.com (offsite) finished"
volumeMounts:
- name: gitea-data