Refactor backup scripts to include redundant backup directory creation, improved logging, and ensure successful backup copying; update run script to execute both database and volume backups sequentially.

This commit is contained in:
2025-04-19 19:51:28 -06:00
parent cba5e8167b
commit 6695ad06a6
13 changed files with 113 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
# This script is automatically generated - do not edit manually
# It runs the Docker check script followed by the backup script
# It runs the Docker check script followed by database and volume backup scripts
# Get the script directory
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
@@ -8,6 +8,10 @@ $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$dockerCheckScript = Join-Path $scriptDir "ensure-docker-running.ps1"
& $dockerCheckScript
# Then run the backup script
$backupScript = Join-Path $scriptDir "backup-gitea-db.ps1"
& $backupScript
# Then run the database backup script
$dbBackupScript = Join-Path $scriptDir "backup-gitea-db.ps1"
& $dbBackupScript
# Finally run the volume backup script
$volumeBackupScript = Join-Path $scriptDir "backup-volume.ps1"
& $volumeBackupScript