diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-01-28 02:03:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-28 02:03:33 -0800 |
| commit | 822f1ade9d3f613e4f400ed0945f52b3bbba3780 (patch) | |
| tree | ecd6b802f0458909814d25340829b56e65d5a325 /weed/command | |
| parent | 5f72c388bcbd38477262ffc754b48485fdd087d0 (diff) | |
| parent | be1062b7fcabf793ea3cbfd5a67b81c07610ce83 (diff) | |
| download | seaweedfs-822f1ade9d3f613e4f400ed0945f52b3bbba3780.tar.xz seaweedfs-822f1ade9d3f613e4f400ed0945f52b3bbba3780.zip | |
Merge pull request #1762 from kmlebedev/backupsink
replication to create time date directory
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/filer_replication.go | 1 | ||||
| -rw-r--r-- | weed/command/scaffold.go | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index e8c06b208..47ef5d1b6 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -11,6 +11,7 @@ import ( _ "github.com/chrislusf/seaweedfs/weed/replication/sink/b2sink" _ "github.com/chrislusf/seaweedfs/weed/replication/sink/filersink" _ "github.com/chrislusf/seaweedfs/weed/replication/sink/gcssink" + _ "github.com/chrislusf/seaweedfs/weed/replication/sink/localincrementalsink" _ "github.com/chrislusf/seaweedfs/weed/replication/sink/localsink" _ "github.com/chrislusf/seaweedfs/weed/replication/sink/s3sink" "github.com/chrislusf/seaweedfs/weed/replication/sub" diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index 1705c6ae4..a95c41054 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -353,9 +353,14 @@ directory = "/buckets" [sink.local] enabled = false -directory = "/backup" +directory = "/data" todays_date_format = "" # set this to 2006-02-01 for incremental backup +[sink.local_incremental] +enabled = false +# all replicated files are under modification time date directory tree +directory = "/backup" + [sink.filer] enabled = false grpcAddress = "localhost:18888" |
