-
Notifications
You must be signed in to change notification settings - Fork 0
Backup and Restore
Built into the Ticket Auction Manager client is the Backup and Restore functions.
These allow you to take a snapshot of your current data as a .json.gz file and restore it to a different client and/or server.
You can access the graphical dialog by pressing the Ctrl + B key combination while on the Main Menu of TAM.
From there you can select a backup location folder and click Backup Now. The file should be created with the current date and time in the name in "YYYY-MM-DDTHH:MM:SS.json.gz" format.
To restore you can select the file you wish to restore from, and then click Restore Now. Then the data which was in the original file should appear in your client or on your server.
Introduced in version 2.0.0, the push and pull buttons allow you to exchange some information between the local database the client keeps and the server.
Pushing takes the data from the local client and "pushes" them to the configured server. So then the data will also be there.
Pulling downloads the data from the server onto the local machine. As a design choice (to keep someone from sabatoging data on both the sever and all connected clients), I made it so that only prefixes can be pulled. If you wish to change this you're welcome to fork the project and maintain your own variant.
The backup and restore options are now available via command-line too, built into the same client executable.
So in a terminal or PowerShell (Windows), you can run the following options as arguments, with examples included:
Using Linux as an example but you can replace the beginning with .\tam-client.exe on Windows, replacing "tam-client" with the name of your client .exe file.
./tam-client.AppImage backup ./
Backs up to the current directory, you can replace the "./" with the absolute or relative path to your desired location. Uses the same current date and time format as the GUI backup tool. Replace "tam-client" with the current name of your client file.
./tam-client.AppImage ibackup ./ 30
Creates backups on an interval, every 30 minutes. You can replace the "./" with your desired backup directory, and 30 with your desired interval in minutes. Again, if you change the name of the AppImage you'll have to change "tam-client" to suit.
./tam-client.AppImage restore name-of-file.json.gz
Restores previously backed up information from a backup file. Replace name-of-file with the name of your backup file. If you renamed the AppImage you'll have to change "tam-client" to suit.
That's pretty much it for the backup and restore functions.
- Home
- Setup Instructions
- Backup and Restore
-
Environment Variables (Server)
-
API_PW
- Sets password to generate API keys. Enables api security when set.
-
SS_MODE
- Pairs API keys to IP addresses when set.
-
DB_TYPE
- Sets DB Type between "LOCAL" (SQLite) and "MARIADB".
-
MARIADB Credentials
- Click to see the environment variables to set MariaDB credentials, such as the host, username, password, and database.
-
API_PW