edie209 Posted July 6, 2007 Posted July 6, 2007 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 rsync --delete -p -r -t -e ssh /var/shares/ ipaddress:/var/shares/mirror/ this runs fine for a little while but then I get an error No space left on device (28) but I am trying to copy about 15 gig to a drive with 150 gig free I also get this error 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] could someone point me on the way to working this out please
openhgs Posted July 6, 2007 Posted July 6, 2007 You are rysncing to a different machine aren't you? rsyncing within a file system is an interesting idea - it will very quickly fill.
edie209 Posted July 6, 2007 Author Posted July 6, 2007 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
Geoff Posted July 6, 2007 Posted July 6, 2007 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/'.
edie209 Posted July 6, 2007 Author Posted July 6, 2007 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 linux :oops: 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
CyberNerd Posted July 6, 2007 Posted July 6, 2007 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
edie209 Posted July 6, 2007 Author Posted July 6, 2007 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
edie209 Posted July 6, 2007 Author Posted July 6, 2007 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
edie209 Posted July 11, 2007 Author Posted July 11, 2007 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now