• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

How to tell size of a certain folder in an archive?

Tomlinson85

ADSM.ORG Member
#1
Hi all

I apologise if this has been covered elsewhere, I cannot seem to find the answer I am looking for.
I have an archive of data, in the TSM gui I can see that it is around 500 gb. But I have a folder within the archive that I need to know the size of. For instance:

\\nodename\data\folder

I need to know just the size of "folder" and any subdirectories.

any help is greatly appreciated. thanks
 

marclant

ADSM.ORG Moderator
#3
I am using q ar "\\nodename\data\folder" -subdir=yes and the size is showing 0 bytes.
That's because that's querying the size of the directory, and the directory always takes 0 bytes of space on the TSM Server, you are looking for the size of the content of the directory.
Try:
Code:
q ar "\\nodename\data\folder\*" -subdir=yes -querysummary
The querysummary option will give you a summary with those details at the bottom.
 

Tomlinson85

ADSM.ORG Member
#4
That's because that's querying the size of the directory, and the directory always takes 0 bytes of space on the TSM Server, you are looking for the size of the content of the directory.
Try:
Code:
q ar "\\nodename\data\folder\*" -subdir=yes -querysummary
The querysummary option will give you a summary with those details at the bottom.
Cheers mate. exactly what I needed, thanks a million
 

Anna

ADSM.ORG Member
#5
Wonderful.
Exactly what I needed, just a question. I have in these folders hundreds of thousand of files. How can I skip listing them and jump right into summary?

Thanks!
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 7 23.3%
  • Keep using TSM for Spectrum Protect.

    Votes: 16 53.3%
  • Let's be formal and just say Spectrum Protect

    Votes: 4 13.3%
  • Other (please comement)

    Votes: 3 10.0%

Forum statistics

Threads
30,889
Messages
131,422
Members
21,194
Latest member
jamesmacd40