Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Save Game Backup Script

Description

This is a basic Powershell script that will back up your save games to a specified directory. Each backup will be placed in a folder named after the current date and time, allowing you to keep multiple backups.

Usage

  1. Download the script SaveGameBackup.ps1 and place it in a directory of your choice.
  2. Open the script in a text editor and change the value of the $backup_folder variable to the directory you want to back up to.
  3. Add your games to the $save_games array, using the format:
[SaveGame]@{ Name = "THE GAME NAME"; SavePath = "C:\The\Game\Save\Path" }
  1. Save the script.
  2. Run the script by right-clicking it and selecting Run with Powershell.

Note

You do not have to use the variables that I use for referencing system paths. The reason that exists is so that my hardcoded Windows folder path does not get committed to the repo. They should absolutely work for you, but don't hesitate to just paste your entire specific path to whatever save game location you want covered.

Scheduling the script to run automatically

  1. Open Task Scheduler as administrator.
  2. Click Create Task....
  3. Give the task a name and description.
  4. Under Security options, select Run with highest privileges.
  5. Under Configure for, select Windows 10.
  6. Under Triggers, click New....
  7. Select Daily and click OK.
  8. Under Triggers, click New... again.
  9. Select At startup and click OK.
  10. Under Actions, click New....
  11. Under Program/script, enter powershell.exe.
  12. Under Add arguments, enter -File C:\Path\To\Script\SaveGameBackup.ps1.
  13. Click OK.
  14. Under Settings, check Run task as soon as possible after a scheduled start is missed
  15. Click OK again.

Test the scheduled task

  1. Click Task Scheduler Library in the left pane.
  2. Find the scheduled task in the main pane and right-click it.
  3. Select Run.
  4. If it ran correclty, you should have a Powershell window up asking you to close it, showing the results.

About

Powershell script to assist with quickly and regularly backing up save games.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages