diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-01-27 15:01:33 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-01-27 15:01:33 +0500 |
| commit | 6b54ff991249d2ce5dfbe28ffb503fc770d5db6c (patch) | |
| tree | be976960762dd48045a6a17387efd130ea1ba057 /weed/replication/sink/backupsink/backup_sink.go | |
| parent | f20ec82a286973a7e3658830637e2e1675729fc5 (diff) | |
| download | seaweedfs-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.go | 18 |
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{}) +} |
