• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 651
  • Last Modified:

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
0
AXISHK
Asked:
AXISHK
4 Solutions
 
Will SzymkowskiSenior 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_jCommented:
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
 
AkulshCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
AkulshCommented:
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
 
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

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now