LinuxCommandLibrary

gobackup

Backup tool for databases and files

TLDR

Backup a database
$ gobackup perform
copy
Backup with specific config
$ gobackup -c [/path/to/config.yml] perform
copy
List available backups
$ gobackup list
copy
Restore from backup
$ gobackup restore [backup-id]
copy

SYNOPSIS

gobackup [options] command

DESCRIPTION

gobackup is a backup tool that supports databases (MySQL, PostgreSQL, Redis, MongoDB) and files. It can compress, encrypt, and upload backups to various storage services.
The tool is configured via YAML files and supports multiple backup models, scheduling, and retention policies.

PARAMETERS

perform

Run backup task
list
List all backups
restore ID
Restore from backup
-c, --config FILE
Configuration file (default: ~/.gobackup/gobackup.yml)
--model MODEL
Specify backup model to run
-v, --version
Display version and exit
-h, --help
Display help and exit

CONFIGURATION

Configuration file example:

$ models:
  my_backup:
    compress_with:
      type: tgz
    store_with:
      type: s3
      bucket: my-bucket
    databases:
      my_db:
        type: mysql
        host: localhost
        database: myapp
copy

CAVEATS

Requires proper configuration. Database credentials must be secured. Storage service credentials needed for remote backups.

HISTORY

gobackup was created as a flexible backup solution supporting multiple databases and storage backends.

SEE ALSO

[restic](https://restic.net/), [borg](https://borgbackup.readthedocs.io/), [duplicity](http://duplicity.nongnu.org/)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard