storage

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(model config.ModelConfig, backupPackage *packager.Package) (err error)

Run storage

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

Base storage

func (*Base) RemotePath

func (b *Base) RemotePath(path string, backupPackage *packager.Package) string

type Context

type Context interface {
	// contains filtered or unexported methods
}

Context storage interface

type Cycler

type Cycler struct {
	// contains filtered or unexported fields
}

type Dropbox

type Dropbox struct {
	Base
	// contains filtered or unexported fields
}

type FTP

type FTP struct {
	Base
	// contains filtered or unexported fields
}

FTP storage

type: ftp path: /backups host: ftp.your-host.com port: 21 timeout: 30 username: password:

type Local

type Local struct {
	Base
	// contains filtered or unexported fields
}

Local storage

type: local path: /data/backups

type OSS

type OSS struct {
	Base
	// contains filtered or unexported fields
}

OSS - Aliyun OSS storage

type: oss bucket: gobackup-test endpoint: oss-cn-beijing.aliyuncs.com path: / access_key_id: your-access-key-id access_key_secret: your-access-key-secret max_retries: 5 timeout: 300 threads: 1 (1 .. 100)

type PackageList

type PackageList []packager.Package

type S3

type S3 struct {
	Base
	// contains filtered or unexported fields
}

S3 - Amazon S3 storage

type: s3 bucket: gobackup-test region: us-east-1 path: backups access_key_id: your-access-key-id secret_access_key: your-secret-access-key max_retries: 5 timeout: 300

type SCP

type SCP struct {
	Base
	// contains filtered or unexported fields
}

SCP storage

type: scp host: 192.168.1.2 port: 22 username: root password: timeout: 300 private_key: ~/.ssh/id_rsa

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL