This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:migrage-tms [2022/03/14 14:35] Денис Цыганов |
en:migrage-tms [2025/03/05 14:41] (current) Виталий Журавлев |
||
---|---|---|---|
Line 66: | Line 66: | ||
<code> | <code> | ||
psql -U tvip-tms tvip-tms | psql -U tvip-tms tvip-tms | ||
- | update device set authkey = ''; | + | update device set authkey = null; |
\q | \q | ||
</code> | </code> | ||
+ | |||
+ | ===== Creating and restoring a MongoDB backup ===== | ||
+ | |||
+ | Create a backup copy of the MongoDB database, using the utility **mongodump** | ||
+ | |||
+ | <code> | ||
+ | mongodump --db images --gzip --archive > /mongoBackup/images.dump.gz | ||
+ | </code> | ||
+ | |||
+ | Install the MongoDB database on the new server: | ||
+ | |||
+ | <code> | ||
+ | # apt install mongodb-org | ||
+ | # systemctl start mongod.service | ||
+ | # systemctl enable mongod.service | ||
+ | </code> | ||
+ | |||
+ | Restore a MongoDB backup, using the utility **mongorestore** | ||
+ | |||
+ | <code> | ||
+ | mongorestore --gzip --archive=/mongoBackup/images.dump.gz | ||
+ | </code> | ||
+ | |||
+ | :!: If you want to keep statistics, save and restore a backup for the database **content** | ||
+ | |||
+ | <code> | ||
+ | mongodump --db content --gzip --archive > /mongoBackup/content.dump.gz | ||
+ | mongorestore --gzip --archive=/mongoBackup/content.dump.gz | ||
+ | </code> | ||
+ | |||
+ | |||
===== Deploy new TMS ===== | ===== Deploy new TMS ===== | ||
Line 92: | Line 123: | ||
===== Post migration procedure ===== | ===== Post migration procedure ===== | ||
- | + | <WRAP center round important 60%> | |
- | * Enable "Allow quick biding" for your Provider \\ | + | Enable "Allow quick binding" option on provider settings. Quick binding option allow authorization device without ask login/password. |
+ | </WRAP> | ||
* Change ip of server or change DNS record to route clients to new TMS.\\ | * Change ip of server or change DNS record to route clients to new TMS.\\ |