Start a Conversation

Unsolved

This post is more than 5 years old

1175

August 2nd, 2016 17:00

Is any way to know how many files in filesystem (file count) at every incr backup job?

As title. Is any way to know how many files in every client filesystem (total file count) at every incr backup job?

Is possible to know...maybe using mminfo command?

2.4K Posts

August 2nd, 2016 22:00

You already got the right idea - use mminfo and include the parameter 'nfiles' in the report.

6 Posts

August 3rd, 2016 01:00

For example:

mminfo -r "client,name,group,sscreate,sscomp,level,totalsize,nfile" -q "savetime>=07/01/2016"

add the "nfile" parameter only shows changed files that be backuped at incr backup as below:

client name group ss_created ss_completed lvl total files_saved
XXXX00001 C:\ Everyday_1800 2016/7/27 05:37:48p 2016/7/27 05:50:31p full 19103403688 151944
XXXX00001 C:\ Everyday_1800 2016/7/27 06:00:57p 2016/7/27 06:01:59p incr 148994724 119
XXXX00001 C:\ Everyday_1800 2016/7/28 02:34:17p 2016/7/28 02:35:22p incr 231120112 266
XXXX00001 C:\ Everyday_1800 2016/7/28 05:21:40p 2016/7/28 05:32:27p full 19018108840 151944
XXXX00001 C:\ Everyday_1800 2016/7/28 06:46:38p 2016/7/28 06:59:42p full 19047360480 151976
XXXX00001 C:\ Everyday_1800 2016/7/30 06:00:48p 2016/7/30 06:10:25p full 19024622716 151969

but have any way to know how many files in filesystem at this time, not how many files be backuped.

2.4K Posts

August 3rd, 2016 04:00

I am not sure where you get your numbers from - the parameter is called 'nfiles' not 'nfile' .

Here is an example for a full backup but it will of course work for any other level.

C:\>mminfo -q "client= ,savetime>-1days" -r "client,name,level,savetime,sumflags,sumsize,nfiles"

client    name                             lvl  date   fl    size nfiles

cl_name    <1>Y:\                      full 03.08.2016 cb 437 GB 254294

cl_name    <2>Y:\                      full 03.08.2016 cb 389 GB 241665

cl_name    <3>Y:\                      full 03.08.2016 cb 427 GB 251990

cl_name    Y:\                             full 03.08.2016 cb 428 GB 327818

C:\>

So if you only want to know about the incremental backup, just extend the query part appropriately:

    mminfo -r "client,name,group,sscreate,sscomp,level,totalsize,nfiles" -q "level=incr,savetime>=07/01/2016"

6 Posts

August 3rd, 2016 08:00

sorry, my fault. I means nfiles not nfile. All my customer want if first full backup, files count shows "151944". if end-user add 2 files, at next incr backup, the table should be show "151946" not "2". same reson, if end-user delete 10 files, on next incr backup, the table should show "151936".

Is possible can do this? I am not sure. Finally, I am very thankful to you.

2.4K Posts

August 3rd, 2016 13:00

No - this is not possible. NW will just give you the numbers per save set - he will not be able to process the results.

If you want, you could script (Powershell?) a routine that adds the values in a column. But this is your task.

2 more issues:

  - If NW backups up something, there will be at least 1 file entry in the save set.

    Consequently, the 'total count' can only increase.

  - Keep in mind that NW will also add 1 file index entry for each directory. So the value 'nfiles' will not only represent file

    numbers.

No Events found!

Top