backup

command module
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Unlicense Imports: 7 Imported by: 0

README

Backup      Latest Release Go ReportCard

Yep

What is this?

A Simple program to automatically backup a database using git.

Err handling by Sentry, Uses heartbeats by Betteruptime

Made with 🩸 , 😓 & 😭

Installation

Via Go

go get github.com/joshhhhyyyy/backup

go install github.com/joshhhhyyyy/backup

export PATH=$PATH:$(go env GOPATH)/bin (Add gopath to path)

Via apt

echo "deb [trusted=yes] https://apt.joseos.com/ ./" | sudo tee /etc/apt/sources.list.d/joseos.list

sudo apt update

sudo apt install backup

Usage

Systemd Timers

Sample Service file | Sample Timer file

Basically, systemd timers is a great alternative to cronjobs as it can be invoked and controlled via systemctl.

Every timer has a corresponding service file that it invokes when the time specified is hit. In the sample files provided, the timer triggers a backup at 4am and 59seconds daily.

Manual Usage

This program can also be set with flags, where you can specify the commit message and cronjob tracker of your choice.

backup [OPTIONS]

Options

**note: both single minus "-" and double minus "--" work fine

-bup="" // Optional, Type: string, a cronjob tracker http link (eg. betteruptime heartbeat) to http.GET

-message="" // Not needed at all, Type: string, optional commit message to pass for manual runs

Debug Options

-key="" // Optional, Type: string, Custom Sentry.io dsn (key url) for project

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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