diff --git a/actions/backups b/actions/backups index 40abc7546..96c0c91d4 100755 --- a/actions/backups +++ b/actions/backups @@ -83,6 +83,10 @@ def subcommand_setup(_): try: subprocess.run(['borg', 'info', REPOSITORY], check=True) except: + path = os.path.dirname(REPOSITORY) + if not os.path.exists(path): + os.makedirs(path) + subprocess.run(['borg', 'init', '--encryption', 'none', REPOSITORY])