refactor: move backup, restore, s3fs tasks in pkg folder
This commit is contained in:
@@ -14,9 +14,6 @@ import (
|
|||||||
const cronLogFile = "/var/log/pg-bkup.log"
|
const cronLogFile = "/var/log/pg-bkup.log"
|
||||||
const backupCronFile = "/usr/local/bin/backup_cron.sh"
|
const backupCronFile = "/usr/local/bin/backup_cron.sh"
|
||||||
|
|
||||||
func init() {
|
|
||||||
|
|
||||||
}
|
|
||||||
func CreateCrontabScript(disableCompression bool, storage string) {
|
func CreateCrontabScript(disableCompression bool, storage string) {
|
||||||
//task := "/usr/local/bin/backup_cron.sh"
|
//task := "/usr/local/bin/backup_cron.sh"
|
||||||
touchCmd := exec.Command("touch", backupCronFile)
|
touchCmd := exec.Command("touch", backupCronFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user