aboutsummaryrefslogtreecommitdiff
path: root/weed/replication/sink/backupsink/backup_sink.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2021-01-27 15:01:33 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2021-01-27 15:01:33 +0500
commit6b54ff991249d2ce5dfbe28ffb503fc770d5db6c (patch)
treebe976960762dd48045a6a17387efd130ea1ba057 /weed/replication/sink/backupsink/backup_sink.go
parentf20ec82a286973a7e3658830637e2e1675729fc5 (diff)
downloadseaweedfs-6b54ff991249d2ce5dfbe28ffb503fc770d5db6c.tar.xz
seaweedfs-6b54ff991249d2ce5dfbe28ffb503fc770d5db6c.zip
replication to create time date directory
Diffstat (limited to 'weed/replication/sink/backupsink/backup_sink.go')
-rw-r--r--weed/replication/sink/backupsink/backup_sink.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/weed/replication/sink/backupsink/backup_sink.go b/weed/replication/sink/backupsink/backup_sink.go
new file mode 100644
index 000000000..df0a778d1
--- /dev/null
+++ b/weed/replication/sink/backupsink/backup_sink.go
@@ -0,0 +1,18 @@
+package backupsink
+
+import (
+ "github.com/chrislusf/seaweedfs/weed/replication/sink"
+ "github.com/chrislusf/seaweedfs/weed/replication/sink/localsink"
+)
+
+type BackupSink struct {
+ localsink.LocalSink
+}
+
+func (backupsink *BackupSink) GetName() string {
+ return "backup"
+}
+
+func init() {
+ sink.Sinks = append(sink.Sinks, &BackupSink{})
+}