Commit 0337b3f9 authored by James Valleroy's avatar James Valleroy

backups: Create folder if needed during setup

Signed-off-by: James Valleroy's avatarJames Valleroy <>
parent 102ef0b5
...@@ -83,6 +83,10 @@ def subcommand_setup(_): ...@@ -83,6 +83,10 @@ def subcommand_setup(_):
try: try:['borg', 'info', REPOSITORY], check=True)['borg', 'info', REPOSITORY], check=True)
except: except:
path = os.path.dirname(REPOSITORY)
if not os.path.exists(path):
os.makedirs(path)['borg', 'init', '--encryption', 'none', REPOSITORY])['borg', 'init', '--encryption', 'none', REPOSITORY])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment