Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Moving to new server not seeing teams and users

$
0
0

Doesn't list any users or teams but it copied over all the channels and posts... I moved the /data folder from old server to new server per these instructions.

Anyone else seen this?

Steps --

Stop mattermost on source

stop mattermost daemon
[root@mattermost ~]# systemctl stop mattermost.service
Verify mattermost status
[root@mattermost ~]# systemctl status mattermost.service

Backup postgres database

pg_dump -U mmuser -d mattermost -h 127.0.0.1 -f mm_backup.sql

Pull down backup to laptop

scp -r money@1x.x.x.x:/home/money/mm_backup.sql .

Pull down config.json

scp -r money@1x.x.x.x:/home/money/config.json .

zip up data folder

tar -zcvf data.tar.gz /opt/mattermost/data

Pull data folder down

scp -r money@1x.x.x.x:/home/money/data.tar.gz .

Push up to the new server

scp mm_backup.sql money@1x.x.x.x:/home/money
scp config.json money@1x.x.x.x:/home/money
scp data.tar.gz money@1x.x.x.x:/home/money

rename the old Data directory

mv -R data data.old

untar and then copy data folder contents(if need be) into /opt/mattermost/

tar -zxvf data.tar.gz
mv config.json
and

Restore

psql -U mmuser -d mattermost -h 127.0.0.1 -f mm_backup.sql

This restored the posts and channels but not teams and users????


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>