Is it possible to make redundant copies with different schedule and retention period? #613
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#613
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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)
Include (sanitized)
--verbosity 2output if applicable.Expected behavior (if a bug)
Other notes / implementation ideas
Environment
borgmatic version: [version here]
Use
sudo borgmatic --versionorsudo pip show borgmatic | grep ^Versionborgmatic installation method: [e.g., Debian package, Docker container, etc.]
Borg version: [version here] 1.7.4
Use
sudo borg --versionPython version: [version here] 3.10.8
Use
python3 --versionDatabase version (if applicable): [version here]
Use
psql --versionormysql --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.yamlAnd then once a week, you could ask your scheduler to run:
borgmatic --config your_non_portable_hdd_config.yamlEach 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.