SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
fix for error when trying to clean up a full filesystem
Author Message
Post fix for error when trying to clean up a full filesystem 
A work around or way to protect against this is to create an appropriate sized blank file in the backup partition.
I usually create a 1GB blank file:
dd if=/dev/zero of=EmptyFile bs=1M count=1000 Then when the backup fails just delete the blank file and run the backup again.
The added benefit of doing this is that it gives you a soft limit and some time to re-organise your drives/partitions.
(Speaking of which it's about time for me to do just that)

Cheers
Gavin

John Soros wrote: Here (attached) is a quick fix i applied to rdiff-backup so i didn't have to
start the backup all over, my disk got full and we are (unfortunately) still
not using lvm.
I am not sure as to the cleanliness of the patch, but it seems to be working
fine, hopefully this can be helpful, as i think having a disk full with rdiff-
backup is a PITA...


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org ([email]rdiff-backup-users < at > nongnu.org[/email])
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post fix for error when trying to clean up a full filesystem 
John Soros wrote:
Ok, sorry, i might have been a bit harsh...
No, what i don't understand, really, is why rdiff-backup needs free space to
clean up old snapshots: no it doesn't, my patch goes to show that if you treat
the cleanup as a read-only operation, it will go through smoothly: it
*doesn't* need any free space, the only thing that needed free space for the
cleanup was creating a useless temporary file.
Also, (this was a while ago, but if i remember correctly) if the tmpdir option
did what it's told entirely (some temporary files were created in tmpdir, some
in the backup root), you wouln't be in such a trouble when the disk is full.
I wonder if anyone had a look at my patch, and if so if they think it's of any
interest? or do they have any other suggestions?
Thanks,
John

Indeed it would be nice to hear from someone that knows/works on the
code base.
I have always just assumed rdiff-backup had good reason to need the
space to perform a roll-back.

Rdiff-backup is a designed (correctly I believe) as a pretty low level
tool in the *nix tradition.
I don't normally use it directly from the command line.
I use it as part a backup system configured with Backupninja.
Having said that if it's an easy fix and rdiff-backup does not really
need the space the improvement
would certainly be a welcome one.

Cheers
Gavin


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB