aboutsummaryrefslogtreecommitdiff
path: root/dna
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-19 16:51:14 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-19 16:51:14 +0200
commit2c6a08c5c3b0f7346fbfa3e2ee86b248ef6d78f7 (patch)
tree5dfc3701c042d16e13c6aee0ad9b1879f6cf566a /dna
parent157e94222bc72ebc27a05f694ca8e9558435ab5a (diff)
downloaddna-backup-2c6a08c5c3b0f7346fbfa3e2ee86b248ef6d78f7.tar.gz
dna-backup-2c6a08c5c3b0f7346fbfa3e2ee86b248ef6d78f7.zip
try to make exports faster
Diffstat (limited to 'dna')
-rw-r--r--dna/drive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dna/drive.go b/dna/drive.go
index 0fc5b03..fd9ac06 100644
--- a/dna/drive.go
+++ b/dna/drive.go
@@ -64,7 +64,7 @@ func New(
os.MkdirAll(destination, 0755)
for i := range pools {
path := filepath.Join(destination, fmt.Sprintf("%02d", i))
- file, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0644)
+ file, err := os.OpenFile(path, os.O_RDWR|os.O_APPEND|os.O_CREATE, 0644)
if err != nil {
logger.Panic(err)
}