A backup of the whole database is taken every night at 11:59 pm Pakistan time; the last 3 are kept. These commands run on the server (VPS):
| Job | Command |
|---|---|
| Update the app | bash /var/www/brick-kilm-erp/update.sh |
| Turn on nightly backups (once) | bash /var/www/brick-kilm-erp/scripts/backup.sh --install |
| Back up now | bash /var/www/brick-kilm-erp/scripts/backup.sh |
| Restore a backup | bash /var/www/brick-kilm-erp/scripts/backup.sh --restore <file> |
Restoring: A restore replaces the live data. The current data is always saved first in
/var/backups/brick-kiln/before-restore/, and the command prints how to undo it.