Consider I have two Storage account i,e. Storage 1, Storage 2. When there is an entry to the Storage 1, the entry should be automatically synced to Storage 2 in Azure for all(table, file, blob). Is there anyway?
-
Bidirectional? What is the purpose, backup?– Peter BonsCommented Jul 18, 2018 at 13:25
-
yes for backup purpose– CSkCommented Jul 18, 2018 at 13:43
-
sync is different than backup. You can use options in answer below, however, if data gets deleted by authorized user, then you also loose data on replica. What do you exactly want?– Saher AhwalCommented Jul 19, 2018 at 19:39
-
@csk Was the answer provided helpful to you ?– Adam Smith - Microsoft AzureCommented Jul 26, 2018 at 17:55
2 Answers
As Gaurav mentioned, Redundancy doesn't mean backup, if data is deleted from the original data location, it will replicate and will be deleted from the other locations. If you are specifically looking for backup solutions, I'd recommend checking the following documentation
Below are some of the available backup options:
If the purpose of your backup is to make sure you always have data available even in case of a rack/datacenter/region level failure(azure infrastructure failure) then we have an option to select a replication strategy when we create a storage account. In this case you would not have access to the backup copy rather these copes are used by Microsoft to recover when a failure is identified. These are -
- Locally redundant storage (LRS)
- Zone-redundant storage (ZRS)
- Geo-redundant storage (GRS)
- Read-access geo-redundant storage (RA-GRS)
For option 1, 2 and 3 the replica is not available unless Microsoft initiates failover.
Option 4 provides read-only access to the data in the secondary location, in addition to geo-replication( GRS Option 3.)
Not sure if you had a different purpose for taking a backup.
-
1Replication is not backup! If the data from primary is deleted, it will be deleted from secondary as well. Commented Jul 19, 2018 at 10:15