LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2009, 11:49 AM   #1
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Rep: Reputation: 15
Question 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.
 
Old 03-25-2009, 11:54 AM   #2
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Ah I got it! I just needed to add an -r after rsync. Have a very fantastic day.
 
Old 03-25-2009, 02:49 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I'd use -a for archiving, which includes -r.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
save web page results in a file and a folder. Whats the folder for? geeyathink General 2 01-30-2008 06:57 AM
backing up remote folder with rsync and ssh ohcarol Linux - Software 6 01-03-2005 12:43 AM
help on web folder script evilchild Programming 1 11-22-2003 07:40 AM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM
mount web folder? keithturner Linux - Newbie 8 01-24-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration