After being introduced to debian a little while ago I am getting more and mor adventurious. At present i am trying to set up directory mirroring using rsync, although i am running into a couple of problems.
I am using the command
this runs fine for a little while but then I get an errorCode:rsync --delete -p -r -t -e ssh /var/shares/ ipaddress:/var/shares/mirror/but I am trying to copy about 15 gig to a drive with 150 gig freeNo space left on device (28)
I also get this error
could someone point me on the way to working this out pleaseCode:rsync: writefd_unbuffered failed to write 4092 bytes [generator]: Broken pipe (32) rsync error: error in rsync protocol data stream (code 12) at io.c(1122) [generator=2.6.9]
You are rysncing to a different machine aren't you? rsyncing within a file system is an interesting idea - it will very quickly fill.
Yes Im rsyncing to another linux machine one is a clarkconnect (CentOS Linux 4) machine that has all my photos and music and I was trying to mirror the directory on the other linux machine whuch is a debian etch machine. I'm doing this at home first so that I can get my head around it before I attempt this at school
Are you sure there is room? Try the following. On the target machine run 'df -h'. On the other machine, run 'du -hs /var/shares/'.
Geoff you have hit the nail my space is on hda3 NOT hda1, but how do i place my share mirror on hda3, I told you I'm still learning linuxops:
thanks
du -h gives a result of
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 9.2G 9.2G 0 100% /
tmpfs 252M 0 252M 0% /lib/init/rw
udev 10M 52K 10M 1% /dev
tmpfs 252M 0 252M 0% /dev/shm
/dev/hda3 141G 188M 134G 1% /srv
du -hs /var/shares/' gives a result of 6.3g /var/shares

change the path in /etc/rsyncd.conf on the server to point to somewhere on /srv and adjust your rsync command on the client accordingly
Got it cheers I was having a problem with access to hda3 not physically just could not understand how to get there via the path now I have just had a look at the drive config on the debian machine via webmin and I now can see how to get there.
Wonderful thing learning you make so many silly mistakes along the way
Its all working now thanks for that,
now I'm going to try and set it up so that it checks every x hours for differances
I have found a really good tutorial on mirroring with Rsync and thought it may be of use to others as it covers shared keys too. Take a look and see what you think
Rsync Tutorial
There are currently 1 users browsing this thread. (0 members and 1 guests)