LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   rsync local web folder to remote web folder? Almost working... (https://www.linuxquestions.org/questions/linux-general-1/rsync-local-web-folder-to-remote-web-folder-almost-working-714372/)

Ultrus 03-25-2009 11:49 AM

rsync local web folder to remote web folder? Almost working...
 
Hello gurus,
I'm trying to upload all files and folders in my local web folder (on a Mac), to my remote Linux server www folder. I can connect. It looks like it could work, but I'm getting a skip message with no files being transferred. The line looks like this:

Quote:

rsync -e "ssh -i /Users/me/Documents/key.key" /Users/me/Documents/coolwebsite/web/ root@174.129.217.152:/var/www
This is the message I get:

Quote:

skipping directory /Users/me/Documents/coolwebsite/web/.
How do I correct this? I don't want it to skip! Thank you for your assistance in advance. :)

Ultrus 03-25-2009 11:54 AM

Ah I got it! I just needed to add an -r after rsync. Have a very fantastic day.

AlucardZero 03-25-2009 02:49 PM

I'd use -a for archiving, which includes -r.


All times are GMT -5. The time now is 02:30 PM.