Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote paths properly #290

Open
alqu opened this issue Feb 27, 2023 · 0 comments
Open

Quote paths properly #290

alqu opened this issue Feb 27, 2023 · 0 comments

Comments

@alqu
Copy link

alqu commented Feb 27, 2023

When using paths for exclusion then the path itself is not properly escaped in the resulting restic call.

E.g.

locations:
  hdd:
    from:
      - /Users
    to:
      - myBackupTarget
    options:
      backup:
        exclude:
          - ~/Library/Group Containers
          - .DS_Store
          - ~/Library/Caches
          # - ...

Gets expanded to the following command:

> Executing: /opt/homebrew/bin/restic backup --exclude ~/Library/Group Containers --exclude .DS_Store --exclude ~/Library/Caches --tag ar:location:hdd /Users
using parent snapshot 123456

Expected behavior
Paths that contain blanks should be escaped properly like:

> Executing: /opt/homebrew/bin/restic backup --exclude ~/Library/Group\ Containers --exclude .DS_Store --exclude ~/Library/Caches --tag ar:location:hdd /Users
using parent snapshot 123456

Environment

  • OS: MacOS
  • Version: 13.2.1

Additional context
Installed autorestic via homebrew and created a config file in ~/.autorestic.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant