Solved

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

Posted on 2010-09-06
8
303 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
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
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 …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

770 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