Skip to content

Additional Backup Strategies #253

@truelai

Description

@truelai

Feature request for and additional backup strategy

Currently, there is only one choice:
Backup & Import

I request you consider 2 additional options:
Backup on Remote (only backup on remote host)
Import Latest Remote Backup (if remote tarball hash does not match already imported tarball hashes)

Reasoning

Scenario 1 - Multiple LxdMosaic instances

If users are running multiple instances, they may want to schedule an import of a remote backup that was triggered by another Mosaic instance. In my case, mosaic1's scheduler triggers an export on lxd1 of c1. mosaic1 imports that tarball per the scheduler. mosaic2, an offsite instance (used for disaster recovery) also wants the same tarball but doesn't need or want to trigger a new gzip event with the associated io on lxd1. I would like mosaic2 to be able to schedule the importation of lxd1's latest tarball of c1. Currently, I cannot use the gui to do this.

Additionally, different mosaic servers may have different purposes (onsite backup, offsite backup, production, dev, special projects, etc.) Using a single instance to only schedule remote backups makes sense if multiple hosts may want to import those backups. For example, c1 is a production container on lxd1. On mosaic1, mosaic3, mosaic5, and mosaic6 I would want to schedule only import of the latest tarball available (provided the mosaic host doesn't already have it). In this case, I want to use mosaic0 to schedule remote backups (without import) instead of having the schedules be fragmented across the mosaic instances.

Scenario 2 - Export schedules controlled by hosts themselves

Let's assume Mosaic is being used in an enterprise where LXD hosts or groups of hosts in an LXD project are controlled by different workgroups. Allowing each team to use their own scripts/crons/management system to schedule their own exports on their hosts may be desirable as the export is generally more costly than the transfer (import). In this case, where teams are scheduling local backups on the hosts they use, while there may be tarballs for mosaic to import, there is no way to use the gui to schedule the importation of those tarballs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions