Skip to content

Commit

Permalink
Fix src_path var
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Nov 25, 2024
1 parent 09729ad commit d7444c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restic_compose_backup/restic.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def restore_files(repository: str, target='/restored_data',mounts={}):
if (restic_exit_code == 0):
for source in mounts.values():
src_path=f"/restored_data{source['bind']}"
if os.path.exists(dst_path):
if os.path.exists(src_path):
shutil.copytree(src_path, source['bind'] , dirs_exist_ok=True)
else:
continue
Expand Down

0 comments on commit d7444c8

Please sign in to comment.