Tomasz writes:

> I want to restore the profile of a user.
> 
> I would like to know, how big it is.
> 
> How can I do it?
> 
> Basically, I would like to check the directory size in BackupPC web 
> interface - right now it only says the size is "4096", which is perhaps 
> true from technical point of view, but not from user's point of view.
> 
> I know I can du "du -sh /backuppc/pc/.../directory" - but that will 
> calculate only the compressed size.

Yes, and it won't include many files if you are using an incremental.

Traversing the directory tree to estimate the size of the tree can
be expensive, so, yes, there isn't a way to do it in the cgi interface.

A moderately accurate way is to run BackupPC_tarCreate and pipe the
output into wc.  This isn't exact because of the tar headers and
padding of each file to match the tar block size.

Craig

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to