Is it possible to make redundant copies with different schedule and retention period?
#613
Closed
opened 4 months ago by lamyergeier
·
1 comments
Loading…
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)
Include (sanitized)
--verbosity 2
output if applicable.Expected behavior (if a bug)
Other notes / implementation ideas
Environment
borgmatic version: [version here]
Use
sudo borgmatic --version
orsudo pip show borgmatic | grep ^Version
borgmatic installation method: [e.g., Debian package, Docker container, etc.]
Borg version: [version here] 1.7.4
Use
sudo borg --version
Python version: [version here] 3.10.8
Use
python3 --version
Database version (if applicable): [version here]
Use
psql --version
ormysql --version
on 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
repositories
configuration 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.