Reverted changes that used bubbletea lib

Fixed some minor issues with backup func
added stdout to backup functions
added stdout to launchserver functions
changed tar execs to add verbos for stdout
This commit is contained in:
2026-01-14 15:13:59 -07:00
parent 86ccf302ea
commit e7f967c6bd
8 changed files with 18 additions and 220 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"fmt"
"os"
"os/exec"
"time"
)
@@ -13,7 +14,8 @@ func backUp(cmd string, c GoConfig) {
t := time.Now()
timeStamp := t.Format(time.RFC3339)
fullBackupName := fmt.Sprintf("%s/ServerBackup.%s.tgz", c.Config.BackupDir, timeStamp)
fullBackup := exec.Command("tar", "-czf", fullBackupName, c.Config.ServDir)
fullBackup := exec.Command("tar", "-czvf", fullBackupName, c.Config.ServDir)
fullBackup.Stdout = os.Stdout
err := fullBackup.Run()
if err != nil {
fmt.Printf("Backup Failed: %s\n", err)
@@ -24,7 +26,8 @@ func backUp(cmd string, c GoConfig) {
timeStamp := t.Format(time.RFC3339)
savesBackupName := fmt.Sprintf("%s/SaveBackup.%s.tgz", c.Config.BackupDir, timeStamp)
saveDir := fmt.Sprintf("%s/saves", c.Config.ServDir)
savesBackup := exec.Command("tar", "-czf", savesBackupName, saveDir)
savesBackup := exec.Command("tar", "-czvf", savesBackupName, saveDir)
savesBackup.Stdout = os.Stdout
err := savesBackup.Run()
if err != nil {
fmt.Printf("Backup Failed: %s\n", err)