go-site-bk

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 8 Imported by: 0

README

Site backup

A backup script that compresses, encrypts and uses Toml as config

Encryption is done with GPG. Compression with Tar and Gzip.

This binary with create bash shells to run most commands.

Dependencies

  • gpg
  • rsync
  • ssh
  • tar
  • bash

MySQL backups MySQL or MariaDB backups require mysqldump on the webserver.

Install

Download the bk-linux-amd64 (or the binary conforming with your PC) binary from the releases, move it to your desired location.

Usage

✏ Copy config-example.toml to config.toml and change the values.

⚡ Run the binary from the location of the config.toml.

🍵 Drink some green tea while waiting for the script to finish executing.

☁ Copy the archive-example-2021-04-04-130001.tar.gz.gpg to your favourite untrusted cloud drive 🙊.

❤ Star this project.

Security

A .cache directory is created to include an unencrypted copy of the last backup to decrease the MB's rsynced over next backup.

The encrypted archives can be safely move to any 3rd party cloud file hosting company.

Decrypt files

To decrypt archives run:

gpg -d archive-<site_name>-<datetime>.tar.gz.gpg | tar -xvzf -

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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