Backups
Zuthree Manager stores data in two key locations: the database and the TFTP storage folder.
- The database (either internal SQLite or external PostgreSQL) holds phone configurations, settings, and asset metadata.
- The TFTP folder stores asset files and other files that phones may download.
Therefore, your backup policy must encompass both the database and the TFTP folder to ensure complete data protection.
Files backup
Your Zuthree Manager backup strategy will depend on your deployment method.
- Virtual Machines: If you deployed Zuthree Manager on a virtual machine, leverage shared data volumes. Use a cron job to automate regular backups of your database and TFTP folder to this shared location.
- Dedicated Hardware: For dedicated hardware, utilize an external hard drive for backups.
To set up periodic backups:
- Linux systems use a tool called
cronto schedule and execute tasks periodically. To edit your cron jobs, use the following command:Terminal window crontab -e - If this is your first time using
crontab, you’ll be prompted to select your preferred editor. - Add this line to the end of the file:
This schedules a backup to your external drive every Sunday at midnight.
Terminal window 0 0 * * 0 cp -r /root/.zuthree/storage /your/external/drive/zuthree
Database backup
- SQLite Database: Backups for the built-in SQLite database follow the same process as your TFTP files. It’s simply another file located within your storage folder. Include it in your regular file backup routine.
- PostgreSQL Database: If you’re using an external PostgreSQL database, refer to the official documentation for setting up backups.