From 7e025bac53fa81221f9467b1bc1f23ff0c3562fc Mon Sep 17 00:00:00 2001 From: IceOfWraith <96364530+IceOfWraith@users.noreply.github.com> Date: Fri, 16 Dec 2022 22:26:30 -0600 Subject: [PATCH] Update Empyrion - Backup Exclude Toggle (#251) This adds a checkbox slider to allow disabling the download of the default backup exclude file. --- empyrion-galactic-survivalconfig.json | 16 ++++++++++++++++ empyrion-galactic-survivalupdates.json | 2 ++ 2 files changed, 18 insertions(+) diff --git a/empyrion-galactic-survivalconfig.json b/empyrion-galactic-survivalconfig.json index bc7fa2c..b6dceaf 100644 --- a/empyrion-galactic-survivalconfig.json +++ b/empyrion-galactic-survivalconfig.json @@ -407,5 +407,21 @@ "DefaultValue": "public", "Placeholder": "public", "EnumValues": {} + }, + { + "DisplayName":"Download Backup Exclude File", + "Category":"SteamCMD and Updates", + "Description":"This downloads a default backup exclude file to save space on backups by only saving specific directories. If this is disabled, you will need to manually delete the .backupExclude file it downloads.", + "Keywords":"download,backup,exclude,file", + "FieldName":"backupExclude", + "InputType":"checkbox", + "IsFlagArgument":false, + "ParamFieldName":"backupExclude", + "IncludeInCommandLine":false, + "DefaultValue":"true", + "EnumValues":{ + "False": "false", + "True": "true" + } } ] \ No newline at end of file diff --git a/empyrion-galactic-survivalupdates.json b/empyrion-galactic-survivalupdates.json index 8a312bf..2225900 100644 --- a/empyrion-galactic-survivalupdates.json +++ b/empyrion-galactic-survivalupdates.json @@ -21,6 +21,8 @@ "UpdateSourceData":"https://github.com/CubeCoders/AMPTemplates/raw/main/exclusions/.backupExclusionsEmpyrion1", "UpdateSourceArgs":".backupExclude", "UpdateSourceTarget":"{{$FullBaseDir}}", + "UpdateSourceConditionSetting": "backupExclude", + "UpdateSourceConditionValue": "true", "OverwriteExistingFiles":false } ]