Migrate data from one server to another using rsync
- by Leonid Shevtsov
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?