backup revision
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user