Is it possible to make redundant copies with different schedule and retention period? #613

Closed
opened 2022-11-21 20:09:59 +00:00 by lamyergeier · 1 comment

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 or sudo 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 or mysql --version on client and server.

operating system and version: [OS here] Ubuntu 22.04

#### What I'm trying to do and why I read [How to make backups redundant](https://torsion.org/borgmatic/docs/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` or `sudo 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` or `mysql --version` on client and server. **operating system and version:** [OS here] Ubuntu 22.04
Owner

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.

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](https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/) for more information. Hope this helps! Let me know if you have any other questions.
witten added the
question / support
label 2022-11-21 21:17:26 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#613
No description provided.