Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFilename ¶
func BackupFilename() string
func CreateWorldBackup ¶
CreateWorldBackup creates a tar.gz archive of the world data directory. The caller must hold the MUD lock during this call.
func Reschedule ¶
func Reschedule()
Reschedule signals the backup scheduler to re-read the config and recalculate the next backup time immediately.
func RunBackup ¶
RunBackup performs a full backup: broadcasts a warning to players, saves all data, locks the MUD, creates the archive, unlocks, and broadcasts completion. Returns the archive bytes, filename, and any error.
func StartScheduler ¶
func StartScheduler()
StartScheduler starts the background goroutine that runs scheduled backups. It re-reads the config each cycle so schedule/destination changes take effect without a restart. Call Reschedule() after changing backup config to apply immediately.
func StopScheduler ¶
func StopScheduler()
StopScheduler signals the backup scheduler goroutine to exit.
Types ¶
This section is empty.