Migrate data from one server to another using rsync
Posted
by Leonid Shevtsov
on Server Fault
See other posts from Server Fault
or by Leonid Shevtsov
Published on 2010-06-06T13:28:38Z
Indexed on
2010/06/06
13:32 UTC
Read the original article
Hit count: 314
I'm moving from one VPS to another, and I figured that the simplest way to transfer data would be rsync
.
However, the data is owned by a user, www-data
, which doesn't have ssh privileges, and I'd like it to be owned by the same (named) user on the target machine. Obviously I need all file permissions preserved. I have SSH access via another user with sudo
privileges on both machines.
Is this possible to do this with rsync?
© Server Fault or respective owner