From 2485ae8e47f20d745f7da76055be8a1f3b549bbb Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Jun 2023 20:24:43 +0200 Subject: [PATCH] Add script for backing up osu!lazer --- scripts/Windows/Software/osu!lazer/Manage.ps1 | 7 +++++++ scripts/Windows/Software/osu!lazer/include.txt | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 scripts/Windows/Software/osu!lazer/Manage.ps1 create mode 100644 scripts/Windows/Software/osu!lazer/include.txt diff --git a/scripts/Windows/Software/osu!lazer/Manage.ps1 b/scripts/Windows/Software/osu!lazer/Manage.ps1 new file mode 100644 index 00000000..f02545d5 --- /dev/null +++ b/scripts/Windows/Software/osu!lazer/Manage.ps1 @@ -0,0 +1,7 @@ +. "$PSScriptRoot/../../Scripts/Context.ps1"; +$path = "$env:APPDATA/osu"; +$softwareName = "osu!lazer"; + +function Invoke-BackupOsuLazer([Context] $context) { + $context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`"", "-i!*.realm", "-i!*.db")); +} \ No newline at end of file diff --git a/scripts/Windows/Software/osu!lazer/include.txt b/scripts/Windows/Software/osu!lazer/include.txt new file mode 100644 index 00000000..85c3f7e5 --- /dev/null +++ b/scripts/Windows/Software/osu!lazer/include.txt @@ -0,0 +1,6 @@ +files +rulesets +screenshots +framework.ini +game.ini +input.json