Is it possible to make redundant copies with different schedule and retention period?
Closedopened 4 months ago by lamyergeier · 1 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
What I'm trying to do and why
I read How to make backups redundant and I want to make redundant copies with different schedules. On portable external SSD I want to backup every day. On Non portable HDD I want to backup every week with different retention plan. Is it possible to do it in a single config file?
Steps to reproduce (if a bug)
Include (sanitized) borgmatic configuration files if applicable.
Actual behavior (if a bug)
--verbosity 2output if applicable.
Expected behavior (if a bug)
Other notes / implementation ideas
borgmatic version: [version here]
sudo borgmatic --versionor
sudo pip show borgmatic | grep ^Version
borgmatic installation method: [e.g., Debian package, Docker container, etc.]
Borg version: [version here] 1.7.4
sudo borg --version
Python version: [version here] 3.10.8
Database version (if applicable): [version here]
mysql --versionon client and server.
operating system and version: [OS here] Ubuntu 22.04
In order to create backups to different repositories on different schedules, I recommend using separate borgmatic configuration files and then invoking borgmatic separately for each configuration from your scheduler.
For instance, you could set up your schedule to run this every day:
borgmatic --config your_external_ssd_config.yaml
And then once a week, you could ask your scheduler to run:
borgmatic --config your_non_portable_hdd_config.yaml
Each of the configuration files could have its own distinct
repositoriesconfiguration along with specific retention options for that repository. And then if you want to reduce duplication across those two configuration files, you can optionally use configuration includes and merging to share common configuration.
See How to make per-application backups for more information.
Hope this helps! Let me know if you have any other questions.