refactor: move backup, restore, s3fs tasks in pkg folder

This commit is contained in:
2024-01-19 06:32:30 +01:00
parent 59e4504872
commit 53e8bfed35
15 changed files with 456 additions and 299 deletions

View File

@@ -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
}