LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-26-2011, 09:06 PM   #1
emanresu
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 76

Rep: Reputation: 15
Question pls help. rsync won't sync 2 directories on the same machine


Hi,

I am learning to use rsync. I thought rsync could be used to sync up two directories, but for some reason, it didn't work for me. Could you please look at my settings and the command I used, and see if I did something wrong?

I've started an rsync daemon with the following settings in /etc/rsyncd.conf.

Code:
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[toydocs]
   path = /home/jim/rsynctoys
   comment = Jim's toy docs
   uid = 0
   gid = 0
   read only = no
   list = yes
   hosts allow = 129.0.0.1/0
   auth users = jimbo
   secrets file = /etc/rsyncd.scrt
   strict modes = false
where /home/jim/rsynctoys has a directory tree with some files, and the file /etc/rsyncd.scrt says the following

Code:
jimbo:jimbo
when I tried to rsync with another directory on the same machine under the same account (~/toy2/, which is empty) as the destination, it would not sync up (see the dry run which says no difference between the two, but the source dir contains a few files and the dest dir is empty):

Code:
jim@jimac: rsync --recursive --progress --delete --verbose --dry-run rsync://jimbo@127.0.0.1:873/toydocs ~/toy2/
=============================
|   this is my rsync MOTD    |
============================
Password: 
receiving incremental file list

sent 59 bytes  received 405 bytes  61.87 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)
i am wondering why it doesn't try to copy the files to ~/toy2/. is it because I created the dest directory toy2 after I did the source dir ~/synctoys/ and populated files in it? but I didn't use the --update option in the command.

Please help. Thanks.
 
Old 04-27-2011, 10:26 AM   #2
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 36

Rep: Reputation: 2
your "hosts allow" seems to have "129.0.0.1/0" not sure if that matters ...

what do you get from "rsync rsync://jimbo@127.0.0.1/" ?
 
  


Reply

Tags
rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync folder with rsync chobong Linux - Server 5 03-04-2010 11:23 PM
rsync and rename help pls genogp Linux - Newbie 3 09-09-2009 06:55 PM
Copy directories/files from Fedora 8 machine to SuSE 10.3 machine r-t Linux - Newbie 6 03-11-2008 07:54 AM
how do i sync two directories??? pengu Linux - Hardware 2 11-09-2006 10:02 PM
Complicated one: MySQL, rsync, remote machine, local machine daiver Linux - General 2 02-27-2006 12:14 PM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration