ASKA
Ethos Sep 3, 2024 @ 8:49am
⚡ PowerShell Script - Automates Save Game Backup to Desktop Folder.
This script creates and/or adds to the desktop folder 'Aska Backup Folder'.

When you run the script, it creates a zip file with the same folder name as your save game folder, along with a timestamp. For example, a folder named savegame_2859a_070924115121 would result in a zip file named savegame_2859a_070924115121_20240907_170643.zip, which includes the date 09/07/2024 and the current time in 24-hour format (17:06:43).

If your system hangs, restarts, or experiences any other issues that cause damage or result in the loss of your current save game, you can simply restore one of your previous copies.

  • Press Windows + S, type Notepad, and open it.
  • Copy the PowerShell script provided to you.
  • Paste the script into Notepad.
  • Click File → Save As.
  • In the Save as type dropdown, select All Files.
  • Name it CopyAskaData.ps1 and save it to your Desktop.
  • On your Desktop, right-click the CopyAskaData.ps1 file and select Run with PowerShell.
    Done! Your script will create the folder and copy the required files.

Here is the PS script:
# Define the source and destination paths $sourcePath = "$env:USERPROFILE\AppData\LocalLow\Sand Sailor Studio\Aska\data\" $backupRootPath = "$env:USERPROFILE\Desktop\ASKA Backup Folder" # Backup path set to Desktop # Ensure the backup root directory exists if (-Not (Test-Path -Path $backupRootPath)) { New-Item -ItemType Directory -Path $backupRootPath } # Get all folders in the source directory $folders = Get-ChildItem -Path $sourcePath -Directory if ($folders -eq $null -or $folders.Count -eq 0) { Write-Output "No folders found in the source directory." exit } # Compress each folder into a separate ZIP file foreach ($folder in $folders) { # Create a timestamp for the ZIP file $timestamp = Get-Date -Format "yyyyMMdd_HHmmss" $zipFileName = "$($folder.Name)_$timestamp.zip" $zipFilePath = Join-Path -Path $backupRootPath -ChildPath $zipFileName # Compress the folder into a ZIP file Compress-Archive -Path $folder.FullName -DestinationPath $zipFilePath Write-Output "Folder '$($folder.Name)' compressed to $zipFilePath" } Write-Output "Backup completed successfully for all folders."
Last edited by Ethos; Sep 12, 2024 @ 7:55am
< >
Showing 1-3 of 3 comments
Ethos Sep 7, 2024 @ 3:27pm 
Updated script to make zip files of each save game folder and add timestamp to filename.
Octavius Sep 15, 2024 @ 4:04am 
Thanks for this! Hearing about the freezing villagers bug introduced in the Sept 13 patch I'm glad I can easily backup my savegames.
Jibaro Sep 15, 2024 @ 7:56am 
ty ty
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Sep 3, 2024 @ 8:49am
Posts: 3