librelist archives

« back to archive

Backing up multiple servers into a single repository?

Backing up multiple servers into a single repository?

From:
Gregor Hoffleit
Date:
2014-11-11 @ 16:10
Is it possible to backup multiple servers into a single repository?

Is it safe to run multiple backups into a single repository at the same 
time? Can Attic cope with concurrent backups into one repository?

Regards,
     Gregor Hoffleit

Re: [attic] Backing up multiple servers into a single repository?

From:
Jonas Borgström
Date:
2014-11-11 @ 21:29
On 2014-11-11 17:10, Gregor Hoffleit wrote:
> Is it possible to backup multiple servers into a single repository?

Yes, but in order for the deduplication used by Attic to work, it needs
to keep a local cache containing checksums of all file chunks already
stored in the repository. This cache is stored in ~/.cache/attic/.
If Attic detects that a repository has been modified since the local
cache was updated it will need to rebuild the cache. This rebuild can be
quite time consuming.

So, yes it's possible. But it will be most efficient if a single
repository is only modified from one place.


>
> Is it safe to run multiple backups into a single repository at the same 
> time? Can Attic cope with concurrent backups into one repository?

Attic will acquire an exclusive lock on the repository while creating or
deleting archives.

/ Jonas