Mailinglist Archive: opensuse (3618 mails)

< Previous Next >
Re: [opensuse] Rsnapshot problems
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 28 Jan 2009 19:00:34 -0600
  • Message-id: <4980FFB2.1080002@xxxxxxxxxxxxxxxxxx>
Bob Williams wrote:
Hi,

For the past few months, I've been using Rsnapshot to to do backups
of /home and /etc to an external hard drive. It's worked well.

However, this week, it's started thrashing the hard drive, and appears to
be making a 50GB backup (that's the size of the source, so an incremental
backup will be much less) go on and on. When the 500GB target drive is
half full, I intervene and kill the rsync process.

Below is part of the logfile from this evening, but it's not very
informative.

Can anyone suggest where I should look, please?

[28/Jan/2009:18:00:01] /usr/bin/rsnapshot daily: started
[28/Jan/2009:18:00:01] echo 12893 > /var/run/rsnapshot.pid
[28/Jan/2009:18:00:01]
mv /media/VirtualMachines/Snapshots/daily.0/
/media/VirtualMachines/Snapshots/daily.1/
[28/Jan/2009:18:00:01] mkdir -m
0755 -p /media/VirtualMachines/Snapshots/daily.0/
[28/Jan/2009:18:00:01] /usr/bin/rsync -a --delete --numeric-ids --relative
--delete-excluded --exclude-from=/home/bob/bin/excludedfiles
--link-dest=/media/VirtualMachines/Snapshots/daily.1/localhost/ /home
/media/VirtualMachines/Snapshots/daily.0/localhost/
[28/Jan/2009:20:12:14] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync
returned 20 while processing /home/
[28/Jan/2009:20:12:14] /etc/ skipped due to rollback plan
[28/Jan/2009:20:12:14] /usr/share/fonts/ skipped due to rollback plan
[28/Jan/2009:20:12:14] Rolling back "localhost/"
[28/Jan/2009:20:12:14] /bin/rm -rf
/media/VirtualMachines/Snapshots/daily.0/localhost/
[28/Jan/2009:20:12:22] /usr/bin/rsnapshot daily: ERROR: rsnapshot was sent
TERM signal... cleaning up
[28/Jan/2009:20:12:22] rm -f /var/run/rsnapshot.pid


Do df -h

I bet you have filled up your root partition up. Then do a:

du -hcs on /var/backup/snapshot

You will find where all your disc space went.

What happens is the default location for the backups
/var/backup/snapshot is
on the / root partition which is generally limited to 20G on opensuse. So one
backup with a vmware or virtualbox image in your home folder pretty much fills
it up.

To solve this, just move the backup location to your /home partition. I
keep
mine at /home/backup/snapshots. Just to (as root)

md /home/backup

mv /var/backup/snapshots /home/backup

Then edit your rsnapshot.conf and change the default location and your
done.


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References