Add backup script for TmUnitedForever

This commit is contained in:
Manuel Thalmann 2023-06-07 01:21:47 +02:00
parent 03b4c6f713
commit a0bb4320d0
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force;
$path = "$HOME/Documents/TrackMania";
$softwareName = "TmUnitedForever";
function Invoke-BackupTmNations([Context] $context) {
Write-Host "$PSScriptRoot";
Start-Process -WorkingDirectory "$path" `
-FilePath "7z" `
-ArgumentList @(
"a",
"-i@`"$PSScriptRoot/include.txt`"",
$context.SoftwareArchive($softwareName)) `
-Wait `
-NoNewWindow;
}

View file

@ -0,0 +1,6 @@
ChallengeMusics
MediaTracker
MenuMusics
Scores
Skins
Tracks