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

@@ -17,16 +17,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:
@@ -64,7 +64,7 @@ spec:
args:
- |
proxmox-backup-client backup gitea-data.pxar:/data/gitea-data postgresql-data.pxar:/data/postgresql-data postgresql-export.pxar:/data/postgresql-export --include-dev /data/postgresql-data --include-dev /data/postgresql-export --include-dev /data/gitea-data --backup-id "gitea-full" -ns git.limbosolutions.com
echo "INFO: git.limbosolutions.com finished"
echo "INFO: Backup git.limbosolutions.com finished"
volumeMounts:
- name: gitea-shared-storage