Solved

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

Posted on 2010-09-06
8
306 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 500 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
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 
LVL 11

Assisted Solution

by:slemmesmi
slemmesmi earned 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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 locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

719 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