From 50dc1ad1895851b72d5c73a22030d8e5cff613e2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Jun 2023 19:40:13 +0200 Subject: [PATCH] Add script for backing up ManiaPlanet --- scripts/Windows/Software/ManiaPlanet/Manage.ps1 | 7 +++++++ scripts/Windows/Software/ManiaPlanet/include.txt | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 scripts/Windows/Software/ManiaPlanet/Manage.ps1 create mode 100644 scripts/Windows/Software/ManiaPlanet/include.txt diff --git a/scripts/Windows/Software/ManiaPlanet/Manage.ps1 b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 new file mode 100644 index 00000000..bc433fc1 --- /dev/null +++ b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 @@ -0,0 +1,7 @@ +. "$PSScriptRoot/../../Scripts/Context.ps1"; +$path = "$HOME/Documents/ManiaPlanet"; +$softwareName = "ManiaPlanet"; + +function Invoke-BackupManiaPlanet([Context] $context) { + $context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`"")); +} diff --git a/scripts/Windows/Software/ManiaPlanet/include.txt b/scripts/Windows/Software/ManiaPlanet/include.txt new file mode 100644 index 00000000..aa6a4bfc --- /dev/null +++ b/scripts/Windows/Software/ManiaPlanet/include.txt @@ -0,0 +1,9 @@ +Actions +Blocks +Items +Maps +Media +Modules +Replays +Scripts +Skins