Re: [BackupPC-users] Converting whole v3 repository to v4?
2017-03-14 03:20:43
Fantastic, I will do the tests next week. Honestly I did not expect the
change to get through so fast :-)
Craig, thanks a lot for you wonderful work. And thanks Michael for the
initial testing!
Best regards,
Pavel.
Dne 14.3.2017 v 02:38 Michael Huntley napsal(a):
> Works great, zero problems. Test restores function properly.
>
> Awesome!
>
>
>
> mph
>
> On 2017-03-12 22:21, Craig Barratt wrote:
>
>> I pushed bin/BackupPC_migrateV3toV4 to git. It uses the hybrid
>> approach I mentioned - V3 backups still use the same forward deltas;
>> this script only replaces the hardlinked backups in each directory
>> with V4 attrib files (and MD5 digests).
>>
>> Usage:
>>
>>
>> BackupPC_migrateV3toV4 [-p] [-v] [-h host [-n V3backupNum]]
>>
>>
>> So to convert a specific backup and host, use both -h ClientName and
>> -n BkupNum. If you don't specify -n, then all that host's V3 backups
>> will be converted.
>>
>> Warning: with no arguments, it will try to convert every v3 backup
>> (maybe I should change that).
>>
>> There are some related changes in several other places, including
>> lib/BackupPC/View.pm, that make the V3 hybrid storage work correctly
>> with the rest of BackupPC. So you'll need to pull all the new code
>> from git to test.
>>
>> If you want to test this, I'd recommend testing it on a single or
>> series of V3 backups. You can safely copy the backup trees using cp
>> -prl (which maintains the hardlinks), eg:
>>
>>
>> cd /data/BackupPC/pc/exampleHost
>>
>> mv 5 5.orig ; cp -prl 5.orig 5
>> mv 6 6.orig ; cp -prl 6.orig 6
>> mv 7 7.orig ; cp -prl 7.orig 7
>> cp backups backups.save
>>
>>
>>
>> If you want to put things back the way they were:
>>
>> rm -rf 5 ; mv 5.orig 5
>> rm -rf 6 ; mv 5.orig 6
>> rm -rf 7 ; mv 5.orig 7
>> # copy the [567] lines from backups.save into backups;
>> # only do "mv backups.save backups" if you are sure no
>> # new backups have been done
>>
>>
>> Craig
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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] Converting whole v3 repository to v4?, (continued)
|
|
|