FeministWiki:Server setup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 267: Line 267:
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 -e "ssh -p ${SSH_PORT}" -az --delete /var/www/ root@feministwiki.dev:/var/www
  rsync -az --delete /var/www/ 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 296: Line 296:
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 -e "ssh -p ${SSH_PORT}" -az --delete /home/vmail/ root@feministwiki.dev:/home/vmail
  rsync -az --delete /home/vmail/ 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 305: Line 305:


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


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