I've purchased a new server on a new host provider. I'm trying to copy the httpdocs folder contents and sub folders to the new server.
I've tried this command - but found it brought over the permissions and user & group ownership from the previous server. I don't want that to happen.
rsync -avz -e ssh email@example.com:/var/www/vhosts/sitename.com/httpdocs/ /home/sitename/public_html/
I could really use help getting the right syntax, please.
How do I copy the file, folders and subfolders -- WITHOUT THE PERMISSIONS, ETC - from the other server? My attempt has failed. I don't want to manually change perms and ownership everytime I sync -- I plan to rsync a few times before the final switch over.
Also, a friend of mine insists that I should always use -x, so that I don't copy more than I need.
I think I'm hungup about "-avz"
Please - whatever help would be appreciated
Thank you in advance