Skip to content

Commit

Permalink
use darrc restore-options in verify()
Browse files Browse the repository at this point in the history
  • Loading branch information
per2jensen committed Feb 13, 2025
1 parent e7b0a3b commit 2402a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/src/dar_backup/dar_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def verify(args: argparse.Namespace, backup_file: str, backup_definition: str, c
for restored_file_path in random_files:
try:
logger.info(f"Restoring file: '{restored_file_path}' from backup to: '{config_settings.test_restore_dir}' for file comparing")
command = ['dar', '-x', backup_file, '-g', restored_file_path.lstrip("/"), '-R', config_settings.test_restore_dir, '-Q']
command = ['dar', '-x', backup_file, '-g', restored_file_path.lstrip("/"), '-R', config_settings.test_restore_dir, '-Q', '-B', args.darrc, 'restore-options']
logger.info(f"Running command: {' '.join(map(shlex.quote, command))}")
process = run_command(command, config_settings.command_timeout_secs)
if process.returncode != 0:
Expand Down

0 comments on commit 2402a8e

Please sign in to comment.