Add script for backing up osu!

This commit is contained in:
Manuel Thalmann 2023-06-07 20:02:31 +02:00
parent 1f853fa290
commit 55d2beadae
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,10 @@
. "$PSScriptRoot/../../Scripts/Context.ps1";
$path = "$env:LOCALAPPDATA/osu!";
$softwareName = "osu!";
$genericConfigName = "osu!.User.cfg";
function Invoke-BackupOsu([Context] $context) {
$archive = $context.SoftwareArchive($softwareName);
$context.Backup($path, $archive, @("-i@`"$PSScriptRoot/include.txt`""));
& 7z rn "$archive" "osu!.$env:USERNAME.cfg" $genericConfigName;
}

View file

@ -0,0 +1,3 @@
Skins
Songs
osu!.*.cfg