Linux

Move directory to another server

* Compress directory

tar cvzf myfolder.tar.gz myfolder/

* Copy directory

scp myfolder.tar.gz [username]@[ip_address_or_hostname]:/home/[username]/myfolder.tar.gz

* Extract directory contents on new server

tar -xvzf myfolder.tar.gz -C /path/to/myfolder