Skip to content

Commit eac5f70

Browse files
authored
Merge pull request #85 from jkaninda/docs
Docs
2 parents f8722f7 + 3476c6f commit eac5f70

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MySQL Backup
2-
MySQL Backup is a Docker container image that can be used to backup and restore MySQL database. It supports local storage, AWS S3 or any S3 Alternatives for Object Storage, and SSH compatible storage.
2+
MySQL Backup is a Docker container image that can be used to backup, restore and migrate MySQL database. It supports local storage, AWS S3 or any S3 Alternatives for Object Storage, and SSH compatible storage.
33
It also supports __encrypting__ your backups using GPG.
44

55
The [jkaninda/mysql-bkup](https://hub.docker.com/r/jkaninda/mysql-bkup) Docker image can be deployed on Docker, Docker Swarm and Kubernetes.

pkg/backup.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ func s3Backup(db *dbConfig, backupFileName string, disableCompression bool, prun
247247
//Delete temp
248248
deleteTemp()
249249
}
250+
251+
// sshBackup backup database to SSH remote server
250252
func sshBackup(db *dbConfig, backupFileName, remotePath string, disableCompression bool, prune bool, backupRetention int, encrypt bool) {
251253
utils.Info("Backup database to Remote server")
252254
//Backup database
@@ -282,6 +284,8 @@ func sshBackup(db *dbConfig, backupFileName, remotePath string, disableCompressi
282284
//Delete temp
283285
deleteTemp()
284286
}
287+
288+
// encryptBackup encrypt backup
285289
func encryptBackup(backupFileName string) {
286290
gpgPassphrase := os.Getenv("GPG_PASSPHRASE")
287291
err := Encrypt(filepath.Join(tmpPath, backupFileName), gpgPassphrase)

0 commit comments

Comments
 (0)