How to see progres of image create???

Post here if you have questions about how to use the program
Post Reply
TheX2
Posts: 7
Joined: Tue Aug 11, 2009 8:54 am

How to see progres of image create???

Post by TheX2 » Tue Aug 11, 2009 9:43 am

-v mode not useful(((

i want to see how much time need to make archive or restore it.
possible???

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Post by admin » Tue Aug 11, 2009 4:05 pm

There is no progress bar yet, it may be added later but that's not a high priority.

TheX2
Posts: 7
Joined: Tue Aug 11, 2009 8:54 am

Post by TheX2 » Wed Aug 12, 2009 8:49 am

:'(

Why???

It's very IMPORTANT...

bielive me )

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Post by admin » Wed Aug 12, 2009 11:58 am

This is not easy to implement: because fsarchiver is file based, it's difficult to know the percentage which is done: It's easy to get global disk space stats about the partition but it's based on free/used blocks, and the sum of the size of all the files don't match the total used blocks space because there are other things like metadata. So the only reliable solution is to first browse all file files on the partition to calculate the total number of bytes to copy, and then to do the real work.

TheX2
Posts: 7
Joined: Tue Aug 11, 2009 8:54 am

Post by TheX2 » Wed Aug 12, 2009 12:41 pm

why not to use smth like this: %=All data/copied data ?

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Post by admin » Thu Aug 13, 2009 6:00 am

I just explained it's very difficult to know the exact amount of "total data", so it's difficult to get the %.

TheX2
Posts: 7
Joined: Tue Aug 11, 2009 8:54 am

Post by TheX2 » Thu Aug 13, 2009 6:52 am

=(

bobbysch
Posts: 26
Joined: Mon Jun 15, 2009 8:46 pm

Re: How to see progres of image create???

Post by bobbysch » Mon Nov 16, 2009 4:41 pm

Hello,

Why not simply doing a "mount" ; then "df" to estimated the total data ???

Thanks.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: How to see progres of image create???

Post by admin » Mon Nov 16, 2009 7:10 pm

It does not work because df will say space is used on a partition with no file, just because there are blocks for metadata. The only way to get reliable statistics for the progress bar is to analyse the partition at the beginning, as rsync does.

bobbysch
Posts: 26
Joined: Mon Jun 15, 2009 8:46 pm

Re: How to see progres of image create???

Post by bobbysch » Tue Nov 17, 2009 2:34 pm

But it's a quick way to do that !
Morever, metadata file are not usually big, are they ?

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: How to see progres of image create???

Post by admin » Sat Nov 21, 2009 8:32 pm

When you write a program, you have to do things that will always work. If the filesystem statistics are used, the progress bar will be completely wrong in corner cases (not many files on the disk for instance).

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: How to see progres of image create???

Post by admin » Sun Dec 13, 2009 11:12 am

I finally found a solution which is both efficient (it won't give very bad statistics in the corner cases) and which does not require code duplication.

The progression has been implemented in fsarchiver-0.6.3-beta4. You have to use the verbose option to see it ("fsarchiver -v").
The progression will only be shown for archiver created and restored with fsarchiver-0.6.3-beta4 (or more recent).
This version is part of SystemRescueCd-1.3.4-beta3 with an alternative path (/usr/sbin/fsarchiver-0.6.3_beta4)

Post Reply