DroidPinkman
3/23/2019 - 2:38 PM

rsync

Example of sending something from my machine's directory to a server.

rsync -rtv local_path/ user@XXX.XXX.XXX.XXX:remote_path/

# that sets the -r -t and -v flags, which are shorthand for --recursive, --times
# (preserves timestamps), and --verbose
# then your source folder
# and your remote folder
# which is just you@yourserver
# then the colon
# then the path
# so if i were sending something from my homedirectory, to my server, it would be
rsync -rtv ~/folder/ chris@IP-HERE:/home/chris/folder

# For Example:
rsync -rtv ~/Sites/myWebApp grayghostvisuals.com@grayghostvisuals.com:~/domains/static.grayghostvisuals.com/html/sync-directory
rsync -rtv ~/Desktop/st-tags-hotkey.gif grayghostvisuals.com@grayghostvisuals.com:~/domains/static.grayghostvisuals.com/html/imgblog