CLI tool for backup your databases, files to FTP / SCP / S3 / GCS and other cloud storages.
GoBackup is a fullstack backup tool design for application servers, to backup your databases, files to cloud storages (Local disk, FTP, SCP, S3, GCS, Aliyun OSS …).
Inspired by backup/backup and replace it for without Ruby dependency.
You can write a config file, run gobackup perform command by once to dump database as file, archive config files, and then package them into a single file.
It’s allow you store the backup file to local, FTP, SCP, S3 or other cloud storages.
Send notification when backup has success or failed.
Mail (SMTP)
Webhook
Discord
Slack
Feishu
DingTalk
GitHub (Comment on Issue)
Telegram
AWS SES
Postmark
SendGrid
Installation
curl -sSL https://gobackup.github.io/install | sh
after that, you will get /usr/local/bin/gobackup command.
Install via Homebrew
brew install gobackup
$ gobackup -h
NAME:
gobackup - Backup your databases, files to FTP / SCP / S3 / GCS and other cloud storages.
USAGE:
gobackup [global options] command [command options] [arguments...]
VERSION:
1.3.0
COMMANDS:
perform
start Start as daemon
run Run GoBackup
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
GoBackup
CLI tool for backup your databases, files to FTP / SCP / S3 / GCS and other cloud storages.
GoBackup is a fullstack backup tool design for application servers, to backup your databases, files to cloud storages (Local disk, FTP, SCP, S3, GCS, Aliyun OSS …).
You can write a config file, run
gobackup perform
command by once to dump database as file, archive config files, and then package them into a single file.It’s allow you store the backup file to local, FTP, SCP, S3 or other cloud storages.
GoBackup 是一个类似 backup/backup 的一站式备份工具,为中小型服务器/个人服务器而设计,配合内置的计划任务,实现定时备份的目的。
使用 GoBackup 你可以通过一个简单的配置文件,一次(执行一个命令)将服务器上重要的(数据库、配置文件)东西导出、打包压缩,并备份到指定目的地(如:本地路径、FTP、云存储…)。
https://gobackup.github.io
Features
Databases
mode: sync/copy
Storages
Notifier
Send notification when backup has success or failed.
Installation
after that, you will get
/usr/local/bin/gobackup
command.Install via Homebrew
Configuration
GoBackup will seek config files in:
Example config: gobackup_test.yml
Usage
Perform backup
Backup schedule
GoBackup built in a daemon mode, you can use
gobackup start
to start it.You can configure the
schedule
for each models, it will run backup task at the time you set.For example
Configure your schedule in
gobackup.yml
Start Daemon & Web UI
GoBackup bulit a HTTP Server for Web UI, you can start it by
gobackup start
.It also will handle the backup schedule.
Now visit http://127.0.0.1:2703 you can see the Web UI:
Signal handling
GoBackup will handle the following signals:
HUP
- Hot reload configuration.QUIT
- Graceful shutdown.Contributing
The DEVELOPMENT document will help you to setup development environment, and guide you how to test them in local.
When you finish your work, please send a PR.
License
MIT