1. Please help support our sponsors by considering their products and services.
    Our sponsors enable us to maintain high-speed Internet connection and fast webservers.
    They support this free information and knowledge exchange forum service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions

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

Discussion in 'Backup / Archive Discussion' started by Tomlinson85, Aug 30, 2016.

  1. Tomlinson85

    Tomlinson85 ADSM.ORG Member

    Joined:
    Apr 14, 2016
    Messages:
    13
    Likes Received:
    0
    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
     
  2.  
  3. Tomlinson85

    Tomlinson85 ADSM.ORG Member

    Joined:
    Apr 14, 2016
    Messages:
    13
    Likes Received:
    0
    I am using q ar "\\nodename\data\folder" -subdir=yes and the size is showing 0 bytes.
     
  4. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,607
    Likes Received:
    370
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    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.
     
  5. Tomlinson85

    Tomlinson85 ADSM.ORG Member

    Joined:
    Apr 14, 2016
    Messages:
    13
    Likes Received:
    0
    Cheers mate. exactly what I needed, thanks a million
     
  6. Anna

    Anna ADSM.ORG Member

    Joined:
    Jul 18, 2016
    Messages:
    10
    Likes Received:
    0
    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!
     
  7. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,607
    Likes Received:
    370
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    You could try "-quiet", but not sure what else it will hide. You'll find out when you test.
     

Share This Page