1. 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.
  2. 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?

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,424
    Likes Received:
    343
    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,424
    Likes Received:
    343
    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