BackupPC-users

Re: [BackupPC-users] Achiving localhost using tar

2012-01-24 16:27:19
Subject: Re: [BackupPC-users] Achiving localhost using tar
From: Carl Wilhelm Soderstrom <chrome AT real-time DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 24 Jan 2012 16:25:56 -0500
On 01/24 03:09 , Kenneth L. Owen wrote:
> But, I do have another question.  Do I need to remove the old tar
> history for localhost?  I don't trust any of the data anyway and it will
> free the storage.

You will likely free less space than you think. This is due to the fact that
BackupPC 'pools' (hardlinks) duplicate files together. 

You do not need to remove history. If you desire to do so anyway, the basic
method is:
# cd /var/lib/backuppc/pc/localhost
# ls -l
compare the numbers of the backups there with the numbers visible in the
BackupPC web interface and pick out the one(s) you wish to delete
# rm -rf <number>

This does not free much space at all, since the files are stored in
/var/lib/backuppc/cpool and hardlinked to /var/lib/backuppc/pc/<hostname>.

The BackupPC_nightly process goes through the pool and looks for files that
have a refcount of 1. These are files that have only one name (directory
entry) associated with them. If the only name for them is in the pool, that
means they aren't used by any backups and may be deleted.

You can wait overnight for the BackupPC_nightly job to run (tho it may take
several nights depending on the settings in config.pl); or to run it by hand
across the whole pool, I think the syntax is:

$ /usr/share/backuppc/bin/BackupPC_nightly 0 255

As always, your paths may vary if you didn't use a Debian package for your
install (or I made a typo).

> Now, that provokes a second question.  What is the best way to do this?
> I could totally remove localhost from the backup system and then tell
> the system to purge the old files for this machine.  Then, recreate it
> using rsync transport mechanism.  I am just not sure exactly how to
> perform this evolution.

Don't worry about it. Just set up the backup the new way.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>