From 69485f30abafb2e9bd8efef339d6df46749a54e6 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Wed, 7 Jun 2023 20:56:40 +0200
Subject: [PATCH] Add script for backing up LGHub

---
 scripts/Windows/Software/LGHub/Manage.ps1 | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 scripts/Windows/Software/LGHub/Manage.ps1

diff --git a/scripts/Windows/Software/LGHub/Manage.ps1 b/scripts/Windows/Software/LGHub/Manage.ps1
new file mode 100644
index 00000000..ad5461f3
--- /dev/null
+++ b/scripts/Windows/Software/LGHub/Manage.ps1
@@ -0,0 +1,7 @@
+. "$PSScriptRoot/../../Scripts/Context.ps1";
+$path = "$env:LOCALAPPDATA/LGHUB";
+$softwareName = "LGHub";
+
+function Invoke-BackupLGHub([Context] $context) {
+    $context.Backup($path, $context.SoftwareArchive($softwareName), @("-i!settings.db*", "-i!icon_cache"));
+}