mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
upgrade_repo_v2: Use atomic replace for supported backends
This commit is contained in:
@@ -201,6 +201,11 @@ func (be *Backend) Hasher() hash.Hash {
|
||||
return md5.New()
|
||||
}
|
||||
|
||||
// HasAtomicReplace returns whether Save() can atomically replace files
|
||||
func (be *Backend) HasAtomicReplace() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Path returns the path in the bucket that is used for this backend.
|
||||
func (be *Backend) Path() string {
|
||||
return be.prefix
|
||||
|
Reference in New Issue
Block a user