- Are home directory snapshots triggered solely via the bitbucket diy backup script, and is this script also intended to trigger replication to the failover site?
- If using LVM/XFS or ZFS, is the replication to the failover site done at the file system level and not at the storage level. If this is the case, is the assumption that no storage replication should be performed correct?
- As the database is replicated via the database engine, again, is the assumption is that no storage level replication should be performed correct?
- Are the bitbucket diy backup script commands capable of recycling old snapshots, or is this done at the file/storage system level?
Hello @Noel Walsh ,
I'm reviewing older unanswered questions in the community.
Since Atlassian products evolve quickly, especially over the past few years, some of the concepts you mentioned could be outdated, changed or even no longer needed. If you could clarify this question, I (or another community member) might be able to provide a solution or at least mark this question as resolved in order to keep the community as organized as possible.
Despite everything, I have investigated and explored some information that may be helpful, otherwise I invite you and the community to participate on this question, together we will surely find a solution creating a place of unique value ;)
1. Home Directory Snapshots and Replication Trigger:
Yes, the home directory snapshots are primarily triggered by the Bitbucket DIY backup script. While this script handles the snapshot creation, the actual replication to the failover site is typically orchestrated separately, either through additional scripts or tools that work in conjunction with the backup process.
2. File System vs. Storage Level Replication (LVM/XFS or ZFS):
You're correct. When using file systems like LVM/XFS or ZFS, replication to the failover site is indeed done at the file system level. This is because these file systems offer built-in snapshotting and replication capabilities. The assumption that no storage-level replication is needed in this scenario is generally accurate, as the file system handles the data consistency during replication.
These file systems offer built-in snapshotting and replication capabilities that facilitate this process. The assumption that no storage-level replication is needed is generally correct. Since these file systems handle data consistency during replication, there's no need to duplicate this effort at the storage level.
However, it's always recommended to verify the specific documentation of your file system and your configuration to confirm the implementation details.
3. Database Replication and Storage-Level Considerations:
Yes, since the database is replicated using its own engine (e.g., PostgreSQL or MySQL replication), there's typically no need for additional storage-level replication for the database data. The database engine ensures data consistency between the primary and failover sites.
Advantages of native database replication:
When to consider storage-level replication:
In most cases, native database replication such as PostgreSQL or MySQL is sufficient to ensure data consistency and availability in a disaster recovery (DR) environment. However, depending on the specific requirements of your system, storage-level replication might be an option to consider for greater flexibility and protection.
4. Recycling Old Snapshots:
The Bitbucket DIY backup script itself might not have explicit commands for recycling old snapshots. However, it can be integrated with the snapshot management features of your file system (LVM/XFS or ZFS). These file systems provide tools to automatically manage snapshot lifecycles, including the deletion of old snapshots based on retention policies you define.
----
Of course, correct me if I'm wrong about anything, I invite you again and the community to participate and contribute knowledge. Feel free to ask whenever you need.
Regards,
Sergio G.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.