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

Multiple source folders in single backup #33

Open
tabic opened this issue Jan 31, 2021 · 4 comments
Open

Multiple source folders in single backup #33

tabic opened this issue Jan 31, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tabic
Copy link

tabic commented Jan 31, 2021

It would be nice to specify multiple source folders in a single backup like this

restic_backups:
  data:
    name: data
    repo: remove
    src:
      - /path/to/data
      - /path/to/data123
      - /path/to/other/data
@mleutenegger mleutenegger added enhancement New feature or request question Further information is requested labels Mar 25, 2021
@mleutenegger
Copy link
Member

Intresting thought to have the option to specify multiple backups. What would be the main benefit of using this over specifying multiple backups to the same repository?

The way I see it,

restic_backups:
  data:
    name: data
    repo: remove
    src:
      - /path/to/data
      - /path/to/data123
      - /path/to/other/data

would be identical to

restic_backups:
  data:
    name: data
    repo: remove
    src: /path/to/data
  data123:
    name: data123
    repo: remove
    src: /path/to/data123
  otherdata:
    name: otherdata
    repo: remove
    src: /path/to/other/data

@tabic
Copy link
Author

tabic commented Apr 11, 2021

Yes, it's identical but much more to type (or copy/paste).

@mleutenegger mleutenegger added help wanted Extra attention is needed and removed question Further information is requested labels Apr 12, 2021
@mleutenegger
Copy link
Member

I would see this as beneficial. If you have the time to create a PR, I'd be happy to include this feature!

@ptoulouse
Copy link

Another benefit is that it allows the path to be backed up together in the same cron schedule, running restic once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants