File Archiving on Window 2008 server

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.

Tkx
AXISHKAsked:
Who is Participating?
 
AkulshConnect With a Mentor Commented:
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
0
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
Take a look at get-childitem with powershell and you should be able to accomplish this.
Here is a link to Script Guys blog.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/06/06/use-powershell-to-find-files-modified-by-month-and-year.aspx

Hope this helps!
0
 
scriven_jConnect With a Mentor Commented:
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....

http://www.jam-software.com/treesize_free/
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
AkulshConnect With a Mentor Commented:
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:
http://www.portablefreeware.com/?id=1171
You can use it to generate multiple lists, using different criteria like file size or date or extension. But it won't move files.
0
 
AXISHKAuthor Commented:
Thanks.

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 ?
0
 
AkulshCommented:
For that JDiskReport or TreeSize tools are best; also free.
0
 
AkulshCommented:
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.Path=$_.fullName
$obj."Size in MB"=$size
#display the table
$obj
}
0
 
AXISHKAuthor Commented:
Tkx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.