Skip to content

opensource-direct/backup-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MySQL/MariaDB Backup Tool

Program sederhana untuk melakukan backup MySQL/MariaDB database dan sinkronisasi direktori backup ke cloud storage. Program ini memanfaatkan mysqldump untuk export database dan rclone untuk sinkronisasi ke cloud.

Cara Install

Download backup-mysql

sudo wget https://raw.githubusercontent.com/musaamin/backup-mysql/main/backup-mysql -O /usr/local/bin/backup-mysql
sudo chmod +x /usr/local/bin/backup-mysql

Cara Menggunakan

Membuat file konfigurasi yang berisi informasi database dan backup.

backup-mysql init mydb.txt

Atur file konfigurasi mydb.txt.

[client]
host=localhost
port=3306
user=dbuser
password=dbpassword

[database]
dbname=dbname

[rclone]
backupdir=/local/dir
rcloneremotes=remote1, remote2
clouddir=cloud-dir/backup

Melakukan backup database.

backup-mysql export mydb.txt

Melakukan sinkronisasi direktori backup ke cloud storage.

backup-mysql rclone mydb.txt

About

MySQL/MariaDB Backup Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%