replication to create time date directory
This commit is contained in:
18
weed/replication/sink/backupsink/backup_sink.go
Normal file
18
weed/replication/sink/backupsink/backup_sink.go
Normal file
@@ -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{})
|
||||
}
|
||||
Reference in New Issue
Block a user