mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
fs: Clone(): fsync the source
This commit is contained in:
parent
ed13a20eef
commit
85de133d57
1 changed files with 1 additions and 0 deletions
|
@ -153,5 +153,6 @@ func Clone(srcName, destName string) (cloned bool, err error) {
|
|||
_ = dest.Close()
|
||||
}()
|
||||
|
||||
_ = src.Sync()
|
||||
return doClone(src, dest)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue