Difference between revisions of "How To:Write dump to multiple storages"

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)
Jump to navigationJump to search
(Created page with '{{How To Header}} There is multiple way to achieve it, the best technique depend of the speed and parallelism of your device = Using the holding disk = You define two storages a…')
(No difference)

Revision as of 15:01, 29 January 2018

This article is a part of the How Tos collection.

There is multiple way to achieve it, the best technique depend of the speed and parallelism of your device

Using the holding disk

You define two storages and configure amanda to write all dump to both storages:

define storage1 {
}
define storage2 {
}
storage "storage1" "storage2"
  • That's it, amanda will write all dumps to storage1 and storage2.
  • This technique require the use of an Holding disk for all DLEs.

What if a DLE can't use the Holding disk

If a DLE can't use the Holding disk (because configured to not use it or the DLE is too large) then the backup is dumped directly to the first storage (storage1) and will never be copied to storage2.

This problem is fixed in 3.5.2, where you can create multiple dump path to a storage but amanda will only copy the dump once.

define storage1 {
  vault storage2 0
}
define storage2 {
}
storage "storage1" "storage2"
vault-storage "storage"

By telling the storage1 to vault its dump to storage2, this vault is done only for DLEs that are not on the storage2.

What if the storage1 fail

  • The DLE that go on holding disk will be copied to storage1 in another run.
  • The DLE that go directly to a storage will be dumped to storage2 and will never be copied to storage1.

This problem is fixed in 3.5.2:

define storage1 {
  vault storage2 0
}
define storage2 {
  vault storage1 0
}
storage "storage1" "storage2"
vault-storage "storage1" "storage2"

By telling the storage2 to vault its dump to storage1, this vault is done only for DLEs that are not on the storage1.


= dump to one storage and vault to another one

define storage1 {
  vault storage2 0
}
define storage2 {
}
storage "storage1"
vault-storage "storage2"

All dumps are copied to storage1 and then vaulted to storage2