Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Tool or script to detect and copy multimedia and installer files from network.

Posted on 2010-09-06
8
Medium Priority
?
312 Views
Last Modified: 2012-05-10
We have about 1TB of data and we think most of it may be multimedia and installer files. We need this system back but the size of the data is affecting our backups. Thus was just wondering if there's a tool there or script to look for all such files and copy them somewhere else?
Please we need this asap.
0
Comment
Question by:Atouray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
8 Comments
 
LVL 11

Accepted Solution

by:
slemmesmi earned 2000 total points
ID: 33610647
Dear Atouray,

check out the WinDirStat, which is a great free tool you can use to display which big files exist on your store: http://en.wikipedia.org/wiki/WinDirStat
While it can display those files for you, it will enable you to decide what to do with the files.
Alternately I'd recommend using Microsoft "forfiles" for finding files of a certain size, and then running a (move or copy) command towards those.

Kind regards,
Soren
0
 

Author Comment

by:Atouray
ID: 33611026
slemmesmi: I need a specific solution that works not only recommendations which points to more research.
I tried WinDirStat it looks to be a good tool for analysis but not moving files as one have to resort to command prompt. I already mention the type of files I want moved.

Thanks.
0
 
LVL 11

Expert Comment

by:slemmesmi
ID: 33615151
Dear Atouray,

ok I understand - here is a script you can use as basis:

@ECHO OFF

REM INITIALIZE VARIABLES
SET Source=C:\Kilde
SET MoveToDestination=C:\Target
SET SizeToCheckForInBytes=1839104

REM Move .iso files
SET Extension=.iso
FOR /R "%SOURCE%" %%F IN (*%Extension%) DO (
rem        IF "%%~zF" GTR "%SizeToCheckForInBytes%" (DIR "%%F"))
      IF "%%~zF" GTR "%SizeToCheckForInBytes%" (MOVE "%%F" %MoveToDestination%))

REM Move .mp3 files
SET Extension=.mp3
FOR /R "%SOURCE%" %%F IN (*%Extension%) DO (
rem        IF "%%~zF" GTR "%SizeToCheckForInBytes%" (DIR "%%F"))
      IF "%%~zF" GTR "%SizeToCheckForInBytes%" (MOVE "%%F" %MoveToDestination%))

:END

Eventually also check out http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_22944345.html

Kind regards,
Soren
0
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.

 
LVL 11

Assisted Solution

by:slemmesmi
slemmesmi earned 2000 total points
ID: 33624234
Dear Atouray,

I've had a look into what can be done using Microsoft's robocopy tool, and that may be easier for you to use (since it is included with Windows Server 2008) and it also nicely can create subfolder structure at destination for files it moves.
Here is a simple script (between the '***' lines), which I believe is self-explaining:
***
@ECHO OFF

REM INITIALIZE VARIABLES
SET Source=C:\Kilde
SET MoveToDestination=C:\Target

REM Move .iso files bigger than 100MB
SET Extension=.iso
SET SizeToCheckForInBytes=104857600
robocopy %SOURCE% %MoveToDestination% *%Extension% /MIN:%SizeToCheckForInBytes% /S /MOV

REM Move .mp3 files bigger than 50MB
SET Extension=.mp3
SET SizeToCheckForInBytes=52428800
robocopy %SOURCE% %MoveToDestination% *%Extension% /MIN:%SizeToCheckForInBytes% /S /MOV
:END
***

Does this solve your question, or do you wish more?

Kind regards,
Soren
0
 
LVL 11

Expert Comment

by:slemmesmi
ID: 33626184
Dear Atouray,

I understood in your question you needed the solution asap - I've provided the solution now.
Please confirm this works for you.

Kind regards,
Soren
0
 

Author Comment

by:Atouray
ID: 33628373
slemmesmi:
Sorry for not responding earlier, our account was lockout and it's just being activated.
I will try the last solution using robocopy and get back to you asap. Also we expecting thursday and friday to be holidays if so I will likely be able to get back to you on monday.

Thanks.
0
 
LVL 11

Expert Comment

by:slemmesmi
ID: 33633655
Dear Atouray,

thank you for your reply.
Please don't hesitate to come back here, if you need anything further in this regard.

Kind regards,
Soren
0
 
LVL 11

Expert Comment

by:slemmesmi
ID: 33699635
Dear Atouray,

Please let me know the result of your try.

Kind regards,
Soren
0

Featured Post

Does Powershell have you tied up in knots?

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
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 setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

610 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