Skip to content

Commit

Permalink
forgotten variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 18, 2024
1 parent 2f9ad56 commit 66e186a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/bash_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def set_cmd_args(settings, bash_script_file, logger, script_name):
keep_backups = str(settings.get('keep_backups')) if 'keep_backups' in settings else None
compress = str(settings.get('compress')) if 'compress' in settings else None
data_dir = str(settings.get('data_dir')) if 'data_dir' in settings else None
include = list(settings.get('include')) if 'include' in settings else None
exclude = list(settings.get('exclude')) if 'exclude' in settings else None

keep_essential = str(settings.get('keep_essential')) if 'keep_essential' in settings else None
keep_full = str(settings.get('keep_full')) if 'keep_full' in settings else None
Expand All @@ -63,6 +65,8 @@ def set_cmd_args(settings, bash_script_file, logger, script_name):
logger.debug(f"script_name: {script_name}")
logger.debug(f"settings: {settings}")
logger.debug(f"bash_script_file: {bash_script_file}")
logger.debug(f"include: {include}")
logger.debug(f"exclude: {exclude}")

if source:
cmd.append('-s')
Expand Down Expand Up @@ -117,6 +121,14 @@ def set_cmd_args(settings, bash_script_file, logger, script_name):
if data_dir:
cmd.append('-D')
cmd.append(shlex.quote(str(data_dir)))

if include:
cmd.append('-i')
cmd.append(shlex.quote(str(include)))

if exclude:
cmd.append('-e')
cmd.append(shlex.quote(str(exclude)))

if script_name in ['backup_appdata', 'backup_plex']:
use_config_file = None
Expand Down

0 comments on commit 66e186a

Please sign in to comment.