refactor: move backup, restore, s3fs tasks in pkg folder
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package utils
|
||||
|
||||
/*****
|
||||
* PostgreSQL Backup & Restore
|
||||
* MySQL Backup & Restore
|
||||
* @author Jonas Kaninda
|
||||
* @license MIT License <https://opensource.org/licenses/MIT>
|
||||
* @link https://github.com/jkaninda/pg-bkup
|
||||
* @link https://github.com/jkaninda/mysql-bkup
|
||||
**/
|
||||
import (
|
||||
"fmt"
|
||||
@@ -70,3 +70,10 @@ func IsDirEmpty(name string) (bool, error) {
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// TestDatabaseConnection tests the database connection
|
||||
func TestDatabaseConnection() {
|
||||
Info("Testing database connection...")
|
||||
// Test database connection
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user