Jump to content

FeministWiki:Server setup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 245: Line 245:
               feministwiki_pt \
               feministwiki_pt \
               fff \
               fff \
   | gzip | ssh root@feministwiki.dev 'gunzip | /root/bin/sql'
   | gzip | ssh root@feministwiki.dev -p ${SSH_PORT} 'gunzip | /root/bin/sql'


You can use the {{C|show databases;}} command in the SQL console to make sure that the list of databases is complete.  Unfortunately they have to be listed manually, because using the {{C|--all-databases}} option includes system databases that we don't want to copy.
You can use the {{C|show databases;}} command in the SQL console to make sure that the list of databases is complete.  Unfortunately they have to be listed manually, because using the {{C|--all-databases}} option includes system databases that we don't want to copy.
Line 253: Line 253:
This is a simple one.  Run this command from the old server:
This is a simple one.  Run this command from the old server:


  rsync -az --delete /home/vmail/ root@feministwiki.dev:/home/vmail
  rsync -az --delete /home/vmail/ root@feministwiki.dev:${SSH_PORT}/home/vmail


Note that the trailing slash in {{C|/home/vmail/}} is important.
Note that the trailing slash in {{C|/home/vmail/}} is important.
Line 262: Line 262:


  cd /var/lib/mailman
  cd /var/lib/mailman
  rsync -az --delete archives data lists root@feministwiki.dev:/var/lib/mailman
  rsync -az --delete archives data lists root@feministwiki.dev:${SSH_PORT}/var/lib/mailman


And then this on the new server:
And then this on the new server: