repositorypackage
0.4.0
Repository: https://github.com/chrisjkras/backlab.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
gitlab-backblaze-backup
Usage
import "gopkg.in/krszwsk/backlab.v0"
bl := backlab.New(backlab.Config{
Credentials: backlab.Credentials{
AccountID: os.Getenv("B2_ACCOUNT_ID"),
ApplicationKey: os.Getenv("B2_APPLICATION_KEY"),
},
BucketName: "backlab-gitlab-backups",
PreserveFor: 60 * 60 * 24 * 7, // 7 days
BackupPath: "/var/opt/gitlab/backups",
})
Perform a backup, including removing old local and remote backups
bl.Backup()