This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
$containerName = "immich_postgres" | |
$backupFile = "immich_dump.sql.gz" | |
$backupPath = "/tmp/$backupFile" # Path inside the Docker container | |
$backupFolder = "$Env:USERPROFILE\Desktop\Immich DB backups" # Folder on Windows desktop to store backups | |
# Ensure the backup folder exists; if not, create it | |
if (-not (Test-Path -Path $backupFolder)) { | |
Write-Host "Creating backup folder at $backupFolder..." -ForegroundColor Cyan | |
New-Item -ItemType Directory -Path $backupFolder |