en:migrage-tms
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:migrage-tms [2022/03/14 11:56] – Денис Цыганов | en:migrage-tms [2025/07/29 15:26] (current) – Константин Сегаль | ||
|---|---|---|---|
| Line 61: | Line 61: | ||
| < | < | ||
| psql -U tvip-tms tvip-tms | psql -U tvip-tms tvip-tms | ||
| + | </ | ||
| + | |||
| + | :!: Restore dumps of additional databases if needed: | ||
| + | < | ||
| + | psql -U tvip-tms tvip-tms-vod | ||
| + | psql -U tvip-tms tvip-tms-audit | ||
| </ | </ | ||
| Line 66: | Line 72: | ||
| < | < | ||
| psql -U tvip-tms tvip-tms | psql -U tvip-tms tvip-tms | ||
| - | update device set authkey = '' | + | update device set authkey = null; |
| \q | \q | ||
| </ | </ | ||
| + | |||
| + | ===== Creating and restoring a MongoDB backup ===== | ||
| + | |||
| + | Create a backup copy of the MongoDB database, using the utility **mongodump** | ||
| + | |||
| + | < | ||
| + | mongodump --db images --gzip --archive > / | ||
| + | </ | ||
| + | |||
| + | Install the MongoDB database on the new server: | ||
| + | |||
| + | < | ||
| + | # apt install mongodb-org | ||
| + | # systemctl start mongod.service | ||
| + | # systemctl enable mongod.service | ||
| + | </ | ||
| + | |||
| + | Restore a MongoDB backup, using the utility **mongorestore** | ||
| + | |||
| + | < | ||
| + | mongorestore --gzip --archive=/ | ||
| + | </ | ||
| + | |||
| + | :!: If you want to keep statistics, save and restore a backup for the database **content** | ||
| + | |||
| + | < | ||
| + | mongodump --db content --gzip --archive > / | ||
| + | mongorestore --gzip --archive=/ | ||
| + | </ | ||
| + | |||
| + | |||
| ===== Deploy new TMS ===== | ===== Deploy new TMS ===== | ||
en/migrage-tms.1647258963.txt.gz · Last modified: by Денис Цыганов
