I am going to move my website to a new server.
I need to copy the /var/www
directory to the new server.
Should I use SCP or RSYNC ?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityYou can use either SCP or Rsync, they will both copy files for what you need.
For the following example, assume the following:
SCP
scp -r [email protected]:/var/www /var/www
RSYNC
rsync -avzh [email protected]:/var/www /var/www