File Archiving on Window 2008 server

Posted on 2012-09-06
Last Modified: 2012-09-07
Is there any free tool to analysis the folders / files on the Window 2008 and output the folders/files that may need to archive ? The selection criteria may be the last modified date, file size, file type (MP3, video file, etc)

Can we use that with PowerShell ? Appreciate any suggestion and past experience on archiving huge amount of data in order to free up server space. However, we couldn't invest any tool on that.

Question by:AXISHK
    LVL 53

    Assisted Solution

    by:Will Szymkowski
    Take a look at get-childitem with powershell and you should be able to accomplish this.
    Here is a link to Script Guys blog.

    Hope this helps!
    LVL 10

    Assisted Solution

    Probably not as helpful as Spec01's answer, but I have found Treesize invaluable in locating the biggest space offenders and helping to prioritise what to archive first for the biggest impact....
    LVL 3

    Assisted Solution

    Use Microsoft's built-in tool Robocopy, which will move files (with all permssions etc intact) by various criteria like size, date (age) etc. I can provide help with its syntax.

    Also, there is a free tool LS.exe ( File List Generator) at:
    You can use it to generate multiple lists, using different criteria like file size or date or extension. But it won't move files.
    LVL 3

    Accepted Solution

    Here is an example of robocopy commands for your purpose:

    Robocopy C:\ J:\Archive\ *.mp3 /E /B /COPYALL /MINAge:20100101 /MIN:10485760 /MOVE /R:0 /W:1 /NP /TEE /Log:C:\temp\RobustcopyArchive_Pre-Jan2010.log

    10485760 bytes = 10 MB

    Author Comment


    Is there a way to generate a size summaries by specifying the folder level, or if not to report the summarized size of the top level ?
    LVL 3

    Expert Comment

    For that JDiskReport or TreeSize tools are best; also free.
    LVL 3

    Expert Comment

    If you want a PowerShell script to show the size of top level folders (of C:\, say), this would work:

    $StartFolder = "C:\*"
    get-childitem $StartFolder | where {$_.PSIsContainer} | foreach {
    $SizeRaw = (Get-ChildItem $_ -recurse | where {!$_.PSIsContainer} | Measure-Object -Sum Length).Sum
    $Size = "{0:N2}" -f ($SizeRaw / 1MB)
    $obj="" | select Path, "Size in MB"
    $obj."Size in MB"=$size
    #display the table

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Promote certifications in your email signature

    Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

    I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now