Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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.

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

   path = /home/jim/rsynctoys
   comment = Jim's toy docs
   uid = 0
   gid = 0
   read only = no
   list = yes
   hosts allow =
   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

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):

jim@jimac: rsync --recursive --progress --delete --verbose --dry-run rsync://jimbo@ ~/toy2/
|   this is my rsync MOTD    |
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, 11:26 AM   #2
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 36

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

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



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-05-2010 12:23 AM
rsync and rename help pls genogp Linux - Newbie 3 09-09-2009 07:55 PM
Copy directories/files from Fedora 8 machine to SuSE 10.3 machine r-t Linux - Newbie 6 03-11-2008 08:54 AM
how do i sync two directories??? pengu Linux - Hardware 2 11-09-2006 11:02 PM
Complicated one: MySQL, rsync, remote machine, local machine daiver Linux - General 2 02-27-2006 01:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 PM.

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