Enhance Gitea database backup script with relative paths, logging, and Docker checks; update scheduling script to include Docker check
This commit is contained in:
13
run-backup.ps1
Normal file
13
run-backup.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# This script is automatically generated - do not edit manually
|
||||
# It runs the Docker check script followed by the backup script
|
||||
|
||||
# Get the script directory
|
||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
# Run the Docker check script first
|
||||
$dockerCheckScript = Join-Path $scriptDir "ensure-docker-running.ps1"
|
||||
& $dockerCheckScript
|
||||
|
||||
# Then run the backup script
|
||||
$backupScript = Join-Path $scriptDir "backup-gitea-db.ps1"
|
||||
& $backupScript
|
||||
Reference in New Issue
Block a user