BackupPC-users

Re: [BackupPC-users] uncompress pool

2011-01-01 15:36:33
Subject: Re: [BackupPC-users] uncompress pool
From: Denis Jedig <dj AT syneticon DOT de>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sat, 01 Jan 2011 21:34:14 +0100
Cheers Jeffrey,

Am 30.12.2010 20:04, schrieb Jeffrey J. Kosowsky:
> Denis Jedig wrote at about 20:57:16 +0100 on Sunday, December 26, 2010:
 >
>>  I am looking for a way of converting a compressed pool (cpool) to
>>  an uncompressed pool (pool).
>
> Conceptually, I don't think it would be that hard...
> 1. Run BackupPC_zcat on the cpool and pipe output to the corresponding
>     pool tree
> 2. Change the 'compress' entry in each relevant 'backupinfo' file in
>     the pc tree to '0'
> 3. Change the config.pl file to use the pool (i.e. no compression)

Mh, thank you for putting me on the track. I suppose I would 
still need to find backlinks for the now-decompressed pool files 
to any files in the "pc" directory and re-link them, right?

Has anybody ever written something to handle this this except for 
trivial solutions like "find -inum <bla> -exec rm {} \&\& ln 
<file> {} ;" which I expect would perform prohibitively poorly 
for any reasonable number of files? Something database-backed 
perhaps which would be able to construct backlinks easily?

As far as I can see, the BackupPC_compressPool utility 
circumvents this problem by simply writing the compressed output 
into the same file that is being compressed, thus retaining the 
inode number and keeping the hardlinks valid. As this is a 
destructive operation and considering the fact that a "piped 
output" script would not have the option to have the same kind of 
luxury without a whole bunch of complexity and error handling, it 
would call for some serious testing before being fired at a 
production pool. I really would hate to see the pool damaged, 
especially since we retain data for a year and longer and 
sometimes have calls for restores going back that far.

Kind regards,

Denis Jedig

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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>
  • Re: [BackupPC-users] uncompress pool, Denis Jedig <=