Skip to main content
Script Automation Generator

Backup & Restart Schedule Generator

Generate production-ready Windows PowerShell scripts and Linux Cron jobs to automatically back up world save files and clear RAM memory leaks.

# Palworld Automated Backup & Restart Script (Windows PowerShell)
$PalServerPath = "C:\PalServer\Pal\Saved\SaveGames"
$BackupDestination = "C:\PalServerBackups"
$Timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss"
$BackupFolder = "$BackupDestination\PalBackup_$Timestamp"

# Create destination backup directory if not exists
if (!(Test-Path -Path $BackupDestination)) {
    New-Item -ItemType Directory -Path $BackupDestination
}

# Zip SaveGames directory
Compress-Archive -Path $PalServerPath -DestinationPath "$BackupFolder.zip"
Write-Host "Palworld world save backup created at $BackupFolder.zip"