Restore a TeamPass instance

Restore a backup and its Recovery Package on a fresh deployment. Compatible database upgrades are applied before activation.

Requires a fresh deployment, an empty dedicated database, the original Recovery Package and a complete backup. Database credentials are for the destination.

  1. 1. Restore database
  2. 2. Publish instance
  3. 3. Secure permissions
  4. 4. Finalize restoration
  5. 5. Cleanup, access and cron

On this server, run the following command as the PHP service account, then enter the one-hour code here.

PHP process account: noorisaeed1375. Run this command on the server. Use sudo -u; sudo php runs as root and creates files PHP cannot read.

sudo -u 'noorisaeed1375' -- '/usr/bin/php8.4' '/home/noorisaeed1375/web/vault.saeedna.ir/public_html/app/scripts/disaster-recovery.php' --enable
Common Linux service accounts

Debian/Ubuntu: www-data; RHEL/Rocky/AlmaLinux: usually apache; SUSE/openSUSE: usually wwwrun. A custom PHP-FPM pool can use another account; prefer the detected account above.