theNaspenGrove / Backup-Utility

A tool to provide quick and stable backups for servers hosted using the Pterodactyl game panel. It requires another machine to run on and an sshfs mount to work correctly, but the goal is to completely offload the backup process and make it independent of the game server or mod loader you're running.
0 stars 1 forks source link

Validate Configuration files on launch #9

Open n-aspen opened 3 years ago

n-aspen commented 3 years ago

To help prevent unclear errors as a result of misconfiguration and to make sure errors that do occur are handled safely I need to test all configs at launch and before each backup that calls them.

If any of these checks fail when the program starts or when a backup is reading the config file it needs to exit and warn the user. The warning levels and methods will be laid out in another issue.

n-aspen commented 3 years ago

Also need to validate that the backup source location exists and contains files.