Skip to content

Command consolidatebackup (Consolidate multipart backup)

Franco Corbelli edited this page Sep 2, 2023 · 2 revisions

Consolidate a multipart backup (for a multipart archive, look at m (merge) command)
When a backup becomes composed of a considerable number of files (thousands) it can be easier to consolidate them into ONE file. New additions will therefore be the second, third, etc

Let's start with a 2-chunk backup, prova_00000001 and prova_00000002

C:\zpaqfranz>dir z:\prova*.*
 Il volume nell'unità Z è RamDisk
 Numero di serie del volume: 2CF8-748D

 Directory di z:\

02/09/2023  16:07         1.296.980 prova_00000000_backup.index
02/09/2023  16:07               275 prova_00000000_backup.txt
02/09/2023  16:07       443.397.076 prova_00000001.zpaq
02/09/2023  16:07       735.112.448 prova_00000002.zpaq
               4 File  1.179.806.779 byte
               0 Directory  80.344.887.296 byte disponibili

Now put everything inside a new backup "z:\consolidated"

C:\zpaqfranz>zpaqfranz consolidatebackup z:\prova -to z:\consolidated
(...)
-----------------------------------------------------------------------------------------------------
z:/consolidated_????????.zpaq:
2 vers, 6.080 files, 35.881 frags, 217 blks, 1.178.509.524 bytes (1.10 GB)
Long filenames (>255)          1 *** WARNING *** (suggest -longpath or -fix255 or -flat)

85135: dtsize                     6.080 [i]                 6.080 [c]:OK
85135: usize              3.246.456.391 [i]         3.246.456.391 [c]:OK
85135: allsize            3.246.456.391 [i]         3.246.456.391 [c]:OK
85135: compressed         1.178.509.524 [i]         1.178.509.524 [c]:OK

3.438 seconds (000:00:03) (all OK)

Now

C:\zpaqfranz>dir z:\consolidated*
 Il volume nell'unità Z è RamDisk
 Numero di serie del volume: 2CF8-748D

 Directory di z:\

02/09/2023  16:13         1.296.980 consolidated_00000000_backup.index
02/09/2023  16:13               186 consolidated_00000000_backup.txt
02/09/2023  16:13     1.178.509.524 consolidated_00000001.zpaq
               3 File  1.179.806.690 byte
               0 Directory  79.165.075.456 byte disponibili

You can convert a standard .zpaq in a backup

Let's make a "normal" zpaq file

C:\zpaqfranz>zpaqfranz a z:\normalarchive.zpaq *.cpp
zpaqfranz v58.10a-JIT-GUI-L,HW BLAKE3,SHA1/2,SFX64 v55.1,(2023-08-25)
franz:-hw
Creating z:/normalarchive.zpaq at offset 0 + 0
Add 2023-09-02 16:15:33        27         88.671.790 (  84.56 MB) 32T (0 dirs)
27 +added, 0 -removed.

0 + (88.671.790 -> 21.127.715 -> 2.338.016) = 2.338.016 @ 146.30 MB/s

0.593 seconds (00:00:00) (all OK)

Now from "normalarchive" to a "backuparchive"

C:\zpaqfranz>zpaqfranz consolidatebackup z:\normalarchive -to z:\backuparchive
zpaqfranz v58.10a-JIT-GUI-L,HW BLAKE3,SHA1/2,SFX64 v55.1,(2023-08-25)
franz:consolidatebackup                         Y - command
franz:-hw
(...)
z:/backuparchive_????????.zpaq:
1 vers, 27 files, 262 frags, 4 blks, 2.338.016 bytes (2.23 MB)

85135: dtsize                        27 [i]                    27 [c]:OK
85135: usize                 88.671.790 [i]            88.671.790 [c]:OK
85135: allsize               88.671.790 [i]            88.671.790 [c]:OK
85135: compressed             2.338.016 [i]             2.338.016 [c]:OK

0.063 seconds (00:00:00) (all OK)

That's it

C:\zpaqfranz>dir z:\backuparchive*
 Il volume nell'unità Z è RamDisk
 Numero di serie del volume: 2CF8-748D

 Directory di z:\

02/09/2023  16:16             9.243 backuparchive_00000000_backup.index
02/09/2023  16:16               188 backuparchive_00000000_backup.txt
02/09/2023  16:16         2.338.016 backuparchive_00000001.zpaq
               3 File      2.347.447 byte
               0 Directory  79.160.385.536 byte disponibili
Clone this wiki locally