FeministWiki:Server setup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 225: Line 225:
This is very simple but takes a lot of time to finish.  '''Run it from the old server:'''
This is very simple but takes a lot of time to finish.  '''Run it from the old server:'''


  rsync -az --delete /var/www/ root@feministwiki.dev:${SSH_PORT}/var/www
  rsync -e "ssh -p ${SSH_PORT}" -az --delete /var/www/ root@feministwiki.dev:/var/www


Note that the trailing slash in {{C|/var/www/}} is important; if not provided, it will copy the directory to {{C|/var/www/www}} on the new server.
Note that the trailing slash in {{C|/var/www/}} is important; if not provided, it will copy the directory to {{C|/var/www/www}} on the new server.
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:${SSH_PORT}/home/vmail
  rsync -e "ssh -p ${SSH_PORT}" -az --delete /home/vmail/ root@feministwiki.dev:/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:${SSH_PORT}/var/lib/mailman
  rsync -e "ssh -p ${SSH_PORT}" -az --delete archives data lists root@feministwiki.dev:/var/lib/mailman


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