ItemPath 3
Below are some commands for backing up and restoring. If you are working with a production environment, add --yes to the end of each command.
To backup your database using the Deployment Manager Tool, use the following command.
Linux:
itempath-deploy backup-dbWindows:
cd $HOME
.\itempath-deploy.cmd backup-db
In the event of a failed upgrade, you can restore from a backup using the following command.
Note: Replace [path to .dump file] with the path to the backup file you just created.
Linux:
itempath-deploy restore-db [path to .dump file]Windows:
cd $HOME
.\itempath-deploy.cmd restore-db[path to .dump file]ItemPath 2
Backups can be done manually with the following commands.
Database backup:
cp ~/ItemPath/data/appdata.db ~/ItemPath/data/backups/appdata-backup-03-2026.dbDocker-compose.yml backup (replacing MM-YY with the current date):
cp docker-compose.yml ItemPath/data/backups/docker-compose-03-26.ymlTo restore the files in case of a failed upgrade, simply 'cp' the files in the opposite direction. Be careful when doing this! You don't want to overwrite anything by mistake.