Documentation
¶
Overview ¶
Package syncmanager provides a manager for syncing btrfs snapshots with a local or remote host.
Index ¶
- Variables
- type Config
- type Manager
- func New(cfg *Config) (Manager, error)
- func NewLocalCompressedManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
- func NewLocalDirectoryManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
- func NewLocalSubvolumeManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
- func NewSSHCompressedManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
- func NewSSHDirectoryManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
- func NewSSHSubvolumeManager(cfg *Config, subvolInfo *btrfs.RootInfo) (Manager, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var OffsetDirectory = ".btrsync"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Logger *log.Logger
Verbosity int
SubvolumeIdentifier string
FullSubvolumePath string
SnapshotDirectory string
SnapshotName string
MirrorPath string
MirrorFormat config.MirrorFormat
SSHUser string
SSHPassword string
SSHKeyFile string
SSHHostKey string
}
func (*Config) LogVerbose ¶
type Manager ¶
type Manager interface {
Sync(ctx context.Context) error
Prune(ctx context.Context) error
Close() error
}
func NewSSHCompressedManager ¶
func NewSSHDirectoryManager ¶
Click to show internal directories.
Click to hide internal directories.