Thomas-Tsai / partclone

Partclone provides utilities to backup a partition smartly and it is designed for higher compatibility of the file system by using existing library.
GNU General Public License v2.0
319 stars 105 forks source link

partclone quiet option #42

Closed techathan closed 10 years ago

techathan commented 10 years ago

hi

i experiencing the following issue

i use partclone as backup solution from an lvm snapshot. when i create an image using partclone like the following

partclone.ext3 -c -s /dev/hda1 -o hda1.img the remaining time for creating the .img file is about 3 minutes

as soon as i want to use the quiet option

partclone.ext3 -c -q -s /dev/hda1 -o hda1.img

the remaining time becomes over 2hours

when i try to pass the whole through gzip

partclone.ext4 -c -q -s /dev/SERVEUR/system_snap | gzip -5 > /home/system_rescue/system_snap.img.gz

it seems to be a never ending process.

be aware thet without "-q" option partclone with gzip takes about 5 minutes.

also the quiet option makes the partclone logfile too big for beeing readable and freezes the session.

am i doing some thing wrong ? is there a work around.

Kind regards, athan

Thomas-Tsai commented 10 years ago

hi,

thank you for this report, i will give a try recently. what's your version of partclone?

Thomas-Tsai commented 10 years ago

Hi,

I can't reproduce this issue there is my log:

A:clone sdb1 to image without quiet, Total Time: 00:00:42 B:clone sdb1 to image with quiet, Total Time: 00:00:40 C:clone sdb1 to pipe with quiet , Total Time: 00:00:18

A: thomas@ptldev:~/partclone/tests$ sudo time ../src/partclone.extfs -c -s /dev/sdb1 -o /test/target/sdb1.img Partclone v0.2.67 http://partclone.org Starting to clone device (/dev/sdb1) to image (/test/target/sdb1.img) Reading Super Block Elapsed: 00:00:18, Remaining: 00:00:00, Completed: 100.00% Total Time: 00:00:18, 100.00% completed! done! File system: EXTFS Device size: 292.0 GB = 71288576 Blocks Space in use: 4.7 GB = 1156578 Blocks Free Space: 287.3 GB = 70131998 Blocks Block size: 4096 Byte Elapsed: 00:00:42, Remaining: 00:00:00, Completed: 100.00%, Rate: 6.77GB/min, current block: 71270914, total block: 71288576, Complete: 100.00% Total Time: 00:00:42, Ave. Rate: 6.8GB/min, 100.00% completed! Syncing... OK! Partclone successfully cloned the device (/dev/sdb1) to the image (/test/target/sdb1.img) Cloned successfully.

B: thomas@ptldev:~/partclone/tests$ sudo time ../src/partclone.extfs -q -c -s /dev/sdb1 -O /test/target/sdb1.img Partclone v0.2.67 http://partclone.org Starting to clone device (/dev/sdb1) to image (/test/target/sdb1.img) Reading Super Block Elapsed: 00:00:18, Remaining: 00:00:00, Completed: 100.00% Total Time: 00:00:18, 100.00% completed! done! File system: EXTFS Device size: 292.0 GB = 71288576 Blocks Space in use: 4.7 GB = 1156578 Blocks Free Space: 287.3 GB = 70131998 Blocks Block size: 4096 Byte Elapsed: 00:00:40, Remaining: 00:00:00, Completed: 100.00%, Rate: 7.11GB/min, current block: 71270914, total block: 71288576, Complete: 100.00% Total Time: 00:00:40, Ave. Rate: 7.1GB/min, 100.00% completed! Syncing... OK! Partclone successfully cloned the device (/dev/sdb1) to the image (/test/target/sdb1.img) Cloned successfully.

C: thomas@ptldev:~/partclone/tests$ sudo time ../src/partclone.extfs -q -c -s /dev/sdb1 | gzip -5 /test/target/sdb1.img.gz gzip: /test/target/sdb1.img.gz: No such file or directory Partclone v0.2.67 http://partclone.org Starting to clone device (/dev/sdb1) to image (-) Reading Super Block Elapsed: 00:00:18, Remaining: 00:00:00, Completed: 100.00% Total Time: 00:00:18, 100.00% completed!