rsync with remote sudo privileges
This makes it easy to copy a file(s) to anywhere on a remote server. If the source file ownership matches a user on the remote server its ownership will be retained.
rsync -a --rsync-path='sudo rsync' /local/path/ user@host:/remote/path/
Written by Quinn Comendant
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sudo
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#