aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-18 16:00:08 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-18 16:00:08 +0200
commit04563efa9c0dc1f6a36094dfd884ae432cf46b29 (patch)
treebe5a78647bec2a6d5812fb8b61b4ac4fcd3744b7 /main.go
parent5539220a8839519becd45b63be65ed86fa9286a4 (diff)
downloaddna-backup-04563efa9c0dc1f6a36094dfd884ae432cf46b29.tar.gz
dna-backup-04563efa9c0dc1f6a36094dfd884ae432cf46b29.zip
add intermediate export package no to make repo dependant on dna
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index ae180b9..ce1c4b3 100644
--- a/main.go
+++ b/main.go
@@ -22,8 +22,10 @@ import (
"fmt"
"os"
+ "github.com/n-peugnet/dna-backup/dna"
"github.com/n-peugnet/dna-backup/logger"
"github.com/n-peugnet/dna-backup/repo"
+ "github.com/n-peugnet/dna-backup/utils"
)
type command struct {
@@ -137,7 +139,8 @@ func exportMain(args []string) error {
r := repo.NewRepo(source, chunkSize)
switch format {
case "dir":
- r.ExportDir(dest, trackSize)
+ exporter := dna.New(dest, 96, trackSize, 10000, utils.ZlibWriter, utils.ZlibReader)
+ r.Export(exporter)
case "csv":
fmt.Println("csv")
default: