A Simple and Lightweight program to automatically backup a database using git.
Err handling by Sentry, Uses heartbeats by Betteruptime
Made with 🩸 , 😓 & ðŸ˜
go get github.com/joshhhhyyyy/backup
go install github.com/joshhhhyyyy/backup
export PATH=$PATH:$(go env GOPATH)/bin
(Add gopath to path)
echo "deb [trusted=yes] https://apt.joseos.com/ ./" | sudo tee /etc/apt/sources.list.d/joseos.list
sudo apt update
sudo apt install backup
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.
This program can also be set with flags, where you can specify the commit message and cronjob tracker of your choice.
backup [OPTIONS]
**note: both single minus "-" and double minus "--" work fine
-ping=""
// Optional, Type: string, send a http get request everytime this runs for uptime monitoring
-message=""
// Not needed at all, Type: string, optional commit message to pass for manual runs
-key=""
// Optional, Type: string, Custom Sentry.io dsn (key url) for project