Skip to content

Commit 1a9c848

Browse files
committed
chore: add code comment
1 parent 421bf12 commit 1a9c848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)