Skip to content

Instantly share code, notes, and snippets.

@payamomrani
Last active March 21, 2020 16:34
Show Gist options
  • Save payamomrani/bea3755bf8f634d2c3b60a0a1a34c2d2 to your computer and use it in GitHub Desktop.
Save payamomrani/bea3755bf8f634d2c3b60a0a1a34c2d2 to your computer and use it in GitHub Desktop.
rsync -avz -e "ssh -p <port-number>" </local-path> root@<server-name>:/<remote-folder>
rsync -avz -e "ssh" ./ root@<server-name>:/<remote-folder>
rsync -avz --exclude={'club','images','assets','upload'} -e "ssh" ./ root@<server-name>:/<remote-folder>
wget -m --user=username --password=password ftp://ip.of.old.host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment