>>>>> On 2006-04-08 11:10 PDT, Adam Chlipala writes:

    Adam> rsnapshot, the tool that we use for automatic on-disk
    Adam> backup, has stopped working in the last few days.  You
    Adam> can see the high-level picture of what is going wrong in
    Adam> /var/log/rsnapshot.log.  /bin/cp fails during a large
    Adam> copying job.  When I run it manually, it terminates with
    Adam> errors like:

    Adam> /bin/cp: cannot access
    Adam> `/home/backup/rsnapshot/daily.0/localhost/home/someone/somefile':
    Adam> Cannot allocate memory /bin/cp: memory exhausted

    Adam> Does anyone knowledgeable about such things know if
    Adam> there is some way we can fix this?  It might be related
    Adam> to our use of ulimits.

Did you forget the exact same discussion we had 15 weeks ago?

I suggested using "link_dest 1" in /etc/rsnapshot.conf to replace
cp with rsync, because rsync uses O(1) memory (only allocates 1
fixed-size buffer) while cp uses O(n) memory.  You said you had a
working patch for rsnapshot; perhaps an apt-get upgrade overwrote
your local changes.


--- Begin Message ---
>>>>> On 2005-12-24 21:11 PST, Karl Chen writes:

>>>>> On 2005-12-24 09:00 PST, Adam Chlipala writes:
    Adam> We're using the rsnapshot Debian package.  I'm confused
    Adam> as to why it's using 'cp' instead of 'mv' for this
    Adam> operation in the first place.  It looks to me like that
    Adam> copy operation is part of deleting the oldest backup and
    Adam> rotating every other to the next lower slot number.

    Adam> It definitely uses 'rsync' for what I take to be the
    Adam> "interesting" part.

    Karl> The --link-dest option greatly simplifies the logic for
    Karl> this kind of script, but, even ignoreing that, just
    Karl> replacing 'cp' with 'rsync' would be a good idea for the
    Karl> other reasons I said.

I just looked, and rsnapshot actually does support using rsync
--link-dest instead of cp.  Just set 'link_dest 1' in
/etc/rsnapshot.conf.

-- 
Karl 2005-12-24 21:11

--- End Message ---



-- 
Karl 2006-04-08 15:51
_______________________________________________
Hcoop-discuss mailing list
[EMAIL PROTECTED]
http://hcoop.net/cgi-bin/mailman/listinfo/hcoop-discuss

Reply via email to