It is currently Thu Mar 28, 2024 1:44 pm

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 225 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15
Author Message
 Post subject: Re: The Beast is HERE!
PostPosted: Tue Jan 25, 2011 10:43 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
just in case anyone prefers to have their system go into sleep mode vs shutdown you can use the PowerCFG.exe command instead of the shutdown command in the script.
To get it usage just enter powercfg.exe /? at a command prompt.
In this setup your WHS client would be able to wake your server backups would run normally.
and WOL (Wake on lan) tools would work as well.
Unfortunately my BEAST does not sleep well, my SAS controllers don't return from the sleep state fast enough for the OS.

I will update the sleepkeeper script here in a couple of days, I am refining it daily as I see minor issue's.
i.e waking the server only to process then not actually shutdown.
running too often etc...

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
 Post subject: Re: The Beast is HERE!
PostPosted: Sun Jan 30, 2011 9:57 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
OK folks as promised a fully tested version of sleepkeeper is here.
In fact works extremely well, I have started using tweaked versions on my movie playback systems to insure my kid doesn't stay up too late on a school night.
So here's the fully tested ver. (Note all the paths set to C:\temp win7 allows writes to this folder without complaint)

Be sure to use two digit hours i.e 01, 02, 10, 11 etc... as that is the format put out by the systems clock and they must match.
Code:
Begin script
***********************************************************************************
@echo off
:start
cls
Rem *********************Sets time of Day**********************************
set HR=0
Set MN=0
Set AMPM=0
For /F "tokens=1,2,3 delims=: " %%A in ('time.exe /T') do (
   set HR=%%A
   set MN=%%B
   set AMPM=%%C
   )

Rem *********************************************************************
Rem *********************sets day of week**********************************
   For /F "tokens=1 eol= " %%A in ('Date.exe /T') do (
   set arg1=%%A
   )
@echo %arg1%
Goto %arg1%
goto exit
Rem *********************************************************************
rem ***************Sets test period for each day*******************************
:Mon
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Tue
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Wed
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Thur
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Fri
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Sat
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

:Sun
set DownTime=11
Set Downtimeperiod=PM
goto timer
goto exit

rem ********************************************************************
rem *****************compares time set with current time**********************
:timer
@echo It is %arg1% %HR% %AMPM%
@echo shut down time set for %downtime%%downtimeperiod%
C:\temp\Sleep 5
If /I %AMPM%==%DownTimeperiod% (goto timer1) Else (Goto Exit)
:timer1
If /I %HR%==%DownTime% (goto alive) Else (Goto Exit)
goto exit
rem ********************************************************************
rem ***************checks to see if any clients are alive************************
:alive
del c:\temp\pingtest.txt
Del c:\temp\tick.txt
Ping 192.168.100.199 >> C:\temp\pingtest.txt
Ping 192.168.100.198 >> C:\temp\pingtest.txt
Ping 192.168.100.197 >> C:\temp\pingtest.txt
Ping 192.168.100.196 >> C:\temp\pingtest.txt


Find /c /i "TTL=" C:\temp\pingtest.txt > c:\temp\tick.txt

Rem (Shuts down your server if no active clients are found)
For /F "tokens=3 delims= " %%A in (C:\temp\tick.txt) do (
cls
if %%A LSS 2 goto choice
if %%A GTR 2 goto alive1
)
Rem (If clients found wait five minutes and retest only if it's past 10pm else stays in standby)
:alive1
@echo System will stay awake
c:\temp\sleep.exe 300

cls
goto alive

rem ******************provides choice to allow auto shutdown or not************
:choice
choice /T 60 /D Y /M "Is it ok for the system to shutdown"
IF ERRORLEVEL = 2 goto awake
IF ERRORLEVEL = 1 goto shutdown
goto exit


:shutdown
@echo system will shutdown after running drive logs.
rem **************run drive log based on day overwrites older logs*************

If not exist c:\temp\nul mkdir c:\temp
if not exist c:\temp\drv-logs\nul mkdir c:\temp\drv-logs
if not exist c:\temp\drv-logs\%arg1%\nul mkdir c:\temp\drv-logs\%arg1%
del /q c:\temp\drv-logs\%arg1%\*.txt

If exist A:\nul cmd /c "dir /s/b a:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-A.txt"
If exist B:\nul cmd /c "dir /s/b b:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-b.txt"
If exist c:\nul cmd /c "dir /s/b c:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-c.txt"
If exist d:\nul cmd /c "dir /s/b d:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-d.txt"
If exist e:\nul cmd /c "dir /s/b e:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-e.txt"
If exist f:\nul cmd /c "dir /s/b f:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-f.txt"
If exist g:\nul cmd /c "dir /s/b g:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-g.txt"
If exist h:\nul cmd /c "dir /s/b h:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-h.txt"
If exist i:\nul cmd /c "dir /s/b i:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-i.txt"
If exist j:\nul cmd /c "dir /s/b j:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-j.txt"
If exist k:\nul cmd /c "dir /s/b k:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-k.txt"
If exist l:\nul cmd /c "dir /s/b l:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-l.txt"
If exist m:\nul cmd /c "dir /s/b m:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-m.txt"
If exist n:\nul cmd /c "dir /s/b n:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-n.txt"
If exist o:\nul cmd /c "dir /s/b o:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-o.txt"
If exist p:\nul cmd /c "dir /s/b p:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-p.txt"
If exist q:\nul cmd /c "dir /s/b q:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-q.txt"
If exist r:\nul cmd /c "dir /s/b r:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-r.txt"
If exist s:\nul cmd /c "dir /s/b s:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-s.txt"
If exist t:\nul cmd /c "dir /s/b t:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-t.txt"
If exist u:\nul cmd /c "dir /s/b u:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-u.txt"
If exist v:\nul cmd /c "dir /s/b v:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-v.txt"
If exist w:\nul cmd /c "dir /s/b w:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-w.txt"
If exist x:\nul cmd /c "dir /s/b x:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-x.txt"
If exist y:\nul cmd /c "dir /s/b y:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-y.txt"
If exist z:\nul cmd /c "dir /s/b z:\ > c:\temp\drv-logs\%arg1%\%HR%%AMPM%-DRV-z.txt"

cls
:shutdown1
choice /T 60 /D Y /M "Are you sure you want to shutdown?"
IF ERRORLEVEL = 2 goto awake
IF ERRORLEVEL = 1 shutdown.exe /F /P
goto exit
:awake
cls
@echo system will stay awake for 30min before testing again
c:\temp\sleep.exe 1800
goto alive
:exit

************************************************************************************
end script

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Last edited by Chasrobin on Mon Jan 31, 2011 10:18 am, edited 2 times in total.

Top
 Profile  
Thanks  
The following user would like to thank Chasrobin for this post
yakuza
 Post subject: Re: The Beast is HERE!
PostPosted: Mon Jan 31, 2011 9:50 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
You may have noticed scripting is a very powerful but lost art.
There used to be books and classes and it was a hobby of many early computer nerds to try there hands with scripting.
The type I use is known as Basic, and is based on built in "DOS" commands.
There are more powerful methods and even prettier ones that use Visual Basic "VB scripting" which will make very pretty graphical programs. (Much more difficult to understand)
But I feel if you need to drive a nail use a hammer, not pretty but effective.
As you can see from my examples of scripts you can achieve a lot with just a few lines which are very easy to understand.
I highly recomend anyone try their hand at it, you may find a hidden talent.

A good place to start is think of something small you would like to accomplish.
i.e. copy files from point a to point b.
open a notepad and also open a command prompt (Dos) window.
in the DOS window type "help" and press enter, you will see a list of available commands.
if you type any of them followed by a " /?" example copy /? you will see how to use that command.

These are the basic commands and you can download more from microsoft usually in the form of their resource kit AKA reskit.

Have fun it's actually very enjoyable once you get comfortable with it.
the very first script most learn is how to say hello
echo does exactly what it says anything following that will be printed to your screen.
cls = Clear the screen
with these two commands you can see the results.
line 1 tells it to not be too verbose
line 2 clears the screen of clutter
line 3 prints just what you want to see to the screen.
Code:
@echo off
CLS
@echo Hello World

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Mon Jan 31, 2011 10:33 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
So whats my next project?
I need a tool that will take a ripped movie and based on it's name move it to the appropriate drive and folder.
So a script that will be Alphabetically/numeric aware, be able to scan my available drives for folders and then move the ripped movie from a staging area to the correct folder.
This tool may be tweaked to handle TV recordings as well if the naming convention is well understood.

What this will allow for is you can setup your favorite ripping tool to rip to a single location and let the mover script handle the orginizing for you.
With the likely hood of vail not having a storage pool, or some tool for orginization this becomes imperative.
And will simplify the manual process of ripping movies.
If anyone has any suggestions nows the time for input.

Thanks

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Mon Jan 31, 2011 10:55 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
So just as a way to kick start some idea's i will go through how I form a tool.
As you see from my previous post I identify the need, and the goal.
now we need to flesh out individual pieces, when I script I like to accomplish it in chunks.
This allows me to repurpose those chunks in later projects speeding up the overall process.
We would assume you already have a folder you ripp to. i.e C:\temp\movies
so once that is identified we would need to know whats in there.
I would use the "Dir" command.
but we are only interested in folders not files.
so I would use something like.

"dir /AD c:\temp\movies"

Of Course we would need to collect this in a usable form like a list so I would direct the output into a text file for later use with a line like this.

"dir /AD c:\temp\movies > C:\temp\mov-mover.txt"
This will create a fresh list each time it's ran called "mov-mover.txt" and will only have folder names in it.

Next we will need to look at each line and try to determine what letter or number they start with.
Ok after thinking about it a little bit I think we will try to do this as simply as possible, to help you new scriptors grasp the idea's better.
So rather than making a fancy file sorting line we will use the dir command to make seperate files for each letter and a common one for Numbers as not too many movies start with numbers.
To keep things orginized we will make a temporary holding folder in our temp folder.
So we will need to check if it exist and make it if it doesn't.
we will do that like this.

Code:
If not exist c:\temp\nul mkdir c:\temp
if not exist c:\temp\movtemp\nul mkdir c:\temp\movtemp

so now we should have a folder called c:\temp\movtemp
into that we will want to do scans of our ripp staging area for movie folders based on their names.
like this.
What we will want to do is clean the folder first to make sure previously ran data is gone.
Then run scans for each needed number/letter.

Code:
Del /Q/S c:\temp\movtemp\*.txt
Dir /AD C:\temp\movies\A* > C:\temp\movtemp\mov-a.txt
Dir /AD C:\temp\movies\B* > C:\temp\movtemp\mov-b.txt
Dir /AD C:\temp\movies\C* > C:\temp\movtemp\mov-c.txt
Dir /AD C:\temp\movies\D* > C:\temp\movtemp\mov-d.txt
Dir /AD C:\temp\movies\E* > C:\temp\movtemp\mov-e.txt
Dir /AD C:\temp\movies\F* > C:\temp\movtemp\mov-f.txt
Dir /AD C:\temp\movies\G* > C:\temp\movtemp\mov-g.txt
Dir /AD C:\temp\movies\H* > C:\temp\movtemp\mov-h.txt
Dir /AD C:\temp\movies\I* > C:\temp\movtemp\mov-i.txt
Dir /AD C:\temp\movies\J* > C:\temp\movtemp\mov-j.txt
Dir /AD C:\temp\movies\K* > C:\temp\movtemp\mov-k.txt
Dir /AD C:\temp\movies\L* > C:\temp\movtemp\mov-L.txt
Dir /AD C:\temp\movies\M* > C:\temp\movtemp\mov-m.txt
Dir /AD C:\temp\movies\N* > C:\temp\movtemp\mov-n.txt
Dir /AD C:\temp\movies\O* > C:\temp\movtemp\mov-o.txt
Dir /AD C:\temp\movies\P* > C:\temp\movtemp\mov-p.txt
Dir /AD C:\temp\movies\Q* > C:\temp\movtemp\mov-q.txt
Dir /AD C:\temp\movies\R* > C:\temp\movtemp\mov-r.txt
Dir /AD C:\temp\movies\S* > C:\temp\movtemp\mov-s.txt
Dir /AD C:\temp\movies\T* > C:\temp\movtemp\mov-t.txt
Dir /AD C:\temp\movies\U* > C:\temp\movtemp\mov-u.txt
Dir /AD C:\temp\movies\V* > C:\temp\movtemp\mov-V.txt
Dir /AD C:\temp\movies\W* > C:\temp\movtemp\mov-w.txt
Dir /AD C:\temp\movies\X* > C:\temp\movtemp\mov-x.txt
Dir /AD C:\temp\movies\Y* > C:\temp\movtemp\mov-y.txt
Dir /AD C:\temp\movies\Z* > C:\temp\movtemp\mov-z.txt
Dir /AD C:\temp\movies\0* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\1* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\2* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\3* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\4* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\5* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\6* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\7* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\8* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\9* >> C:\temp\movtemp\mov-#.txt

You might notice for numbered names I used a ">>" instead of a single this is for appending to the end of a text file rather than replacings.
it allows me to have multiple commands dump their output into one file.
So now that we have several files with lists of names sorted by alpha and number we need to run a command against each name within each list we will do this with a "For" command.

Ok, so we can gather folder list, as an example the output looks like this.
Attachment:
mov-u.jpg
mov-u.jpg [ 62.76 KiB | Viewed 15136 times ]


As you can see it's not just a simple list so we will need to be able to deal with the unnecesarry data.
Lucky for us the trusty "FOR" command has just what we need.
you will notice the first five lines are junk so we can skip them.
so our test line looks like this.
"FOR /I "Skip=5 tokens=4" %%A IN (c:\temp\movtemp\mov-a.txt) DO ( command goes here )"
This will skip the first five lines, and then take the fourth word in from the left and treat it as a folder name.
you might notice it will attempt to run against the last two lines, which will result in no action as in either case by the time we reach the end of the file no titles of that name will exist it will simply fail the next step.
With an error file not found.

When dealing with paths it's best if they are defined, and many scripts will have a beginning section dedicated to defining paths and constants.
So any thing that won't change or at least not very often you want to predefine.
Such as in the case of orginized movie folders.
On my system for the first Drive if you will, any movies the start with numbers or A-F go here into seperate folders.
So we will set predefined definitions for those paths.

Note: any line that begins with "REM" means it's ignored and used for remarks, this is very useful for making notes within your tools.

At this point we have enough bits and pieces to start putting our script into order of course it will evolve as we test each piece along the way.

We will call this one MovieMover.cmd
Code:
Begin Script
rem ******path definitions**********************
set path-#=F:\#
set path-A=F:\A
set path-B=F:\B
set path-C=F:\C
set path-D=F:\D
set path-E=F:\E
set path-F=F:\F

rem *****Check for folders**********************
If not exist c:\temp\nul mkdir c:\temp
if not exist c:\temp\movtemp\nul mkdir c:\temp\movtemp
Rem ********Begin list making*******************
Del /Q/S c:\temp\movtemp\*.txt
Dir /AD C:\temp\movies\A* > C:\temp\movtemp\mov-a.txt
Dir /AD C:\temp\movies\B* > C:\temp\movtemp\mov-b.txt
Dir /AD C:\temp\movies\C* > C:\temp\movtemp\mov-c.txt
Dir /AD C:\temp\movies\D* > C:\temp\movtemp\mov-d.txt
Dir /AD C:\temp\movies\E* > C:\temp\movtemp\mov-e.txt
Dir /AD C:\temp\movies\F* > C:\temp\movtemp\mov-f.txt
Dir /AD C:\temp\movies\G* > C:\temp\movtemp\mov-g.txt
Dir /AD C:\temp\movies\H* > C:\temp\movtemp\mov-h.txt
Dir /AD C:\temp\movies\I* > C:\temp\movtemp\mov-i.txt
Dir /AD C:\temp\movies\J* > C:\temp\movtemp\mov-j.txt
Dir /AD C:\temp\movies\K* > C:\temp\movtemp\mov-k.txt
Dir /AD C:\temp\movies\L* > C:\temp\movtemp\mov-L.txt
Dir /AD C:\temp\movies\M* > C:\temp\movtemp\mov-m.txt
Dir /AD C:\temp\movies\N* > C:\temp\movtemp\mov-n.txt
Dir /AD C:\temp\movies\O* > C:\temp\movtemp\mov-o.txt
Dir /AD C:\temp\movies\P* > C:\temp\movtemp\mov-p.txt
Dir /AD C:\temp\movies\Q* > C:\temp\movtemp\mov-q.txt
Dir /AD C:\temp\movies\R* > C:\temp\movtemp\mov-r.txt
Dir /AD C:\temp\movies\S* > C:\temp\movtemp\mov-s.txt
Dir /AD C:\temp\movies\T* > C:\temp\movtemp\mov-t.txt
Dir /AD C:\temp\movies\U* > C:\temp\movtemp\mov-u.txt
Dir /AD C:\temp\movies\V* > C:\temp\movtemp\mov-V.txt
Dir /AD C:\temp\movies\W* > C:\temp\movtemp\mov-w.txt
Dir /AD C:\temp\movies\X* > C:\temp\movtemp\mov-x.txt
Dir /AD C:\temp\movies\Y* > C:\temp\movtemp\mov-y.txt
Dir /AD C:\temp\movies\Z* > C:\temp\movtemp\mov-z.txt
Dir /AD C:\temp\movies\0* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\1* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\2* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\3* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\4* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\5* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\6* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\7* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\8* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\9* >> C:\temp\movtemp\mov-#.txt
Rem***end list making**************************
rem ******begin move section*******************
FOR /I "Skip=5 tokens=4" %%A IN (c:\temp\movtemp\mov-a.txt) DO (
                 move c:\temp\movies\%%A %path-A%
                 )
FOR /I "Skip=5 tokens=4" %%A IN (c:\temp\movtemp\mov-b.txt) DO (
                 move c:\temp\movies\%%A %path-B%
                 )
FOR /I "Skip=5 tokens=4" %%A IN (c:\temp\movtemp\mov-c.txt) DO (
                 move c:\temp\movies\%%A %path-C%
                 )
 


Of course this is now a work in progress and garanteed to fail and break.
Keep watching this post for updates as I will continue to flesh this out over the next couple of days.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Last edited by Chasrobin on Mon Jan 31, 2011 3:05 pm, edited 1 time in total.

Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Mon Jan 31, 2011 3:00 pm 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
Yes I am purposely leaving it very simple with each line doing one or two actions.
As well as not getting too complicated, so as to possibly inspire new folks to attempt their own projects.
I know I could make it much smaller and more compact, and will later once we show the concept and progress through some refinement and testing stages.
I will hopefully show how to make it more efficient and smaller, but for now simple and understandable is the goal.
if there are any other scriptors out there feel free to add input with teaching in mind KISS (Keep it super simple)

Thanks

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Wed Feb 02, 2011 10:31 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
So I hope we are ready for our next installment.
In order for file moves we have to make sure the target directories exist, since we are dealing with a movie collection in this case I'm sure as I have done you have all setup your #A-Z folders on the appropiate drives.
If like me you use GPT volumes these might move around so we need to be aware.

So to start with I will show our completed rough script.
Which I have tested and it does what we had as our goal.
Code:

rem ******path definitions**********************

Rem example of setting drive path as a variable
rem You may have multiple paths setup here.
rem examp "set testpath-A=x:\" the variable then becomes %testpath-A%
rem in script where something is used many times it's best to use a variable so you only have to change
rem one location to update the whole script.

Set testpath=c:\temp\move


set path-#=%testpath%\#
set path-A=%testpath%\A
set path-B=%testpath%\B
set path-C=%testpath%\C
set path-D=%testpath%\D
set path-E=%testpath%\E
set path-F=%testpath%\F
set path-G=%testpath%\G
set path-H=%testpath%\H
set path-I=%testpath%\I
set path-J=%testpath%\J
set path-K=%testpath%\K
set path-L=%testpath%\L
set path-M=%testpath%\M
set path-N=%testpath%\N
set path-O=%testpath%\O
set path-P=%testpath%\P
set path-Q=%testpath%\Q
set path-R=%testpath%\R
set path-S=%testpath%\S
set path-T=%testpath%\T
set path-U=%testpath%\U
set path-V=%testpath%\V
set path-W=%testpath%\W
set path-X=%testpath%\X
set path-Y=%testpath%\Y
set path-Z=%testpath%\Z


rem *****Check for folders**********************
If not exist c:\temp\nul mkdir c:\temp
If not exist c:\temp\nul mkdir c:\temp\move
if not exist c:\temp\movtemp\nul mkdir c:\temp\movtemp
Rem ********Begin list making*******************
Del /Q/S c:\temp\movtemp\*.txt
Dir /AD C:\temp\movies\A* > C:\temp\movtemp\mov-a.txt
Dir /AD C:\temp\movies\B* > C:\temp\movtemp\mov-b.txt
Dir /AD C:\temp\movies\C* > C:\temp\movtemp\mov-c.txt
Dir /AD C:\temp\movies\D* > C:\temp\movtemp\mov-d.txt
Dir /AD C:\temp\movies\E* > C:\temp\movtemp\mov-e.txt
Dir /AD C:\temp\movies\F* > C:\temp\movtemp\mov-f.txt
Dir /AD C:\temp\movies\G* > C:\temp\movtemp\mov-g.txt
Dir /AD C:\temp\movies\H* > C:\temp\movtemp\mov-h.txt
Dir /AD C:\temp\movies\I* > C:\temp\movtemp\mov-i.txt
Dir /AD C:\temp\movies\J* > C:\temp\movtemp\mov-j.txt
Dir /AD C:\temp\movies\K* > C:\temp\movtemp\mov-k.txt
Dir /AD C:\temp\movies\L* > C:\temp\movtemp\mov-L.txt
Dir /AD C:\temp\movies\M* > C:\temp\movtemp\mov-m.txt
Dir /AD C:\temp\movies\N* > C:\temp\movtemp\mov-n.txt
Dir /AD C:\temp\movies\O* > C:\temp\movtemp\mov-o.txt
Dir /AD C:\temp\movies\P* > C:\temp\movtemp\mov-p.txt
Dir /AD C:\temp\movies\Q* > C:\temp\movtemp\mov-q.txt
Dir /AD C:\temp\movies\R* > C:\temp\movtemp\mov-r.txt
Dir /AD C:\temp\movies\S* > C:\temp\movtemp\mov-s.txt
Dir /AD C:\temp\movies\T* > C:\temp\movtemp\mov-t.txt
Dir /AD C:\temp\movies\U* > C:\temp\movtemp\mov-u.txt
Dir /AD C:\temp\movies\V* > C:\temp\movtemp\mov-V.txt
Dir /AD C:\temp\movies\W* > C:\temp\movtemp\mov-w.txt
Dir /AD C:\temp\movies\X* > C:\temp\movtemp\mov-x.txt
Dir /AD C:\temp\movies\Y* > C:\temp\movtemp\mov-y.txt
Dir /AD C:\temp\movies\Z* > C:\temp\movtemp\mov-z.txt
Dir /AD C:\temp\movies\0* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\1* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\2* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\3* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\4* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\5* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\6* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\7* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\8* >> C:\temp\movtemp\mov-#.txt
Dir /AD C:\temp\movies\9* >> C:\temp\movtemp\mov-#.txt
Rem ***end list making**************************
rem ******begin move section*******************
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-a.txt) DO (
                 move c:\temp\movies\%%A %path-A%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-b.txt) DO (
                 move c:\temp\movies\%%A %path-B%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-c.txt) DO (
                 move c:\temp\movies\%%A %path-C%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-d.txt) DO (
                 move c:\temp\movies\%%A %path-D%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-e.txt) DO (
                 move c:\temp\movies\%%A %path-E%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-f.txt) DO (
                 move c:\temp\movies\%%A %path-F%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-g.txt) DO (
                 move c:\temp\movies\%%A %path-G%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-h.txt) DO (
                 move c:\temp\movies\%%A %path-H%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-i.txt) DO (
                 move c:\temp\movies\%%A %path-I%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-j.txt) DO (
                 move c:\temp\movies\%%A %path-J%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-k.txt) DO (
                 move c:\temp\movies\%%A %path-K%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-l.txt) DO (
                 move c:\temp\movies\%%A %path-L%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-m.txt) DO (
                 move c:\temp\movies\%%A %path-M%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-n.txt) DO (
                 move c:\temp\movies\%%A %path-N%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-o.txt) DO (
                 move c:\temp\movies\%%A %path-O%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-p.txt) DO (
                 move c:\temp\movies\%%A %path-P%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-q.txt) DO (
                 move c:\temp\movies\%%A %path-Q%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-r.txt) DO (
                 move c:\temp\movies\%%A %path-R%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-s.txt) DO (
                 move c:\temp\movies\%%A %path-S%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-t.txt) DO (
                 move c:\temp\movies\%%A %path-T%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-u.txt) DO (
                 move c:\temp\movies\%%A %path-U%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-v.txt) DO (
                 move c:\temp\movies\%%A %path-V%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-w.txt) DO (
                 move c:\temp\movies\%%A %path-W%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-x.txt) DO (
                 move c:\temp\movies\%%A %path-X%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-y.txt) DO (
                 move c:\temp\movies\%%A %path-Y%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-z.txt) DO (
                 move c:\temp\movies\%%A %path-Z%
                 )
FOR /F "tokens=5 skip=5" %%A IN (c:\temp\movtemp\mov-#.txt) DO (
                 move c:\temp\movies\%%A %path-#%
                 )




Now for the explination
First we setup a target folder.
Attachment:
test-target-folder.jpg
test-target-folder.jpg [ 161.75 KiB | Viewed 15116 times ]

Then we identify our test victims
Attachment:
test-folder.jpg
test-folder.jpg [ 141.31 KiB | Viewed 15116 times ]


Once we run the script we can see it moves each folder to the target path.
By setting our target path variables to our real directories this will move the movies to their
appropriate directory.
If this all occures on the same machine it goes much faster than across a network but it will work either way.

Now that we have a working rough we need to look at alternative methods to achieve the same results that will make our tool smaller and maybe faster, or easier to maintain.


Attachments:
test-folder.jpg
test-folder.jpg [ 141.31 KiB | Viewed 15116 times ]

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram
Top
 Profile  
Thanks  
The following user would like to thank Chasrobin for this post
Steve_S
 Post subject: Re: The Beast is HERE!
PostPosted: Wed Feb 02, 2011 11:29 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
One thing we will address in the next update is what we do with movie folders that contain spaces.
Personally when I ripp movies I always name the ripps XXX_XXX as many file handling tools have issues with spaces.
What defines one word from another yet makes it part of the same title?
This can be difficult but we can figure out how to deal with them automatically.

And we may look at error reporting, i.e. what happens if the folder already exist?
Don't worry it won't overwrite it for now.
So we need to add a little feedback and smarts to our tool.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Fri Feb 04, 2011 5:38 pm 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
Alrighty then!

I hope I gave everyone plenty of time to wrap their brains around what we have done so far.
Cuz I have taken our moving tool and compressed it and made it able to handle dir names with spaces.
So without too much fiddling heres what we have.

Code:
Set testpath=c:\temp\move
Set movies=c:\temp\movies
Set tmp=C:\temp\movtemp

rem *****Check for folders**********************
If not exist c:\temp\nul mkdir c:\temp
If not exist c:\temp\nul mkdir c:\temp\move
if not exist c:\temp\movtemp\nul mkdir c:\temp\movtemp
Rem ********Begin list making*******************
Del /Q/S c:\temp\movtemp\*.txt

For %%A in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   Dir /AD /B %movies%\%%A* > %tmp%\mov-%%A.txt
   )
For %%A in (0,1,2,3,4,5,6,7,8,9) Do (
   Dir /AD /B %movies%\%%A* >> %tmp%\mov-#.txt
   )

Rem ***end list making**************************
rem ******begin move section*******************
For %%A in (#,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   FOR /F "tokens=1-9" %%a in (%tmp%\mov-%%A.txt) Do (cmd /c move "%movies%\%%a %%b %%c %%d %%e %%f %%g" %testpath%\%%A%)
   )


As you can see it has gotten much smaller, by massageing our basic commands and nesting one within another we can get compound actions.
I know it looks like a bunch of foriegn gobledy gook but ask away if you don't understand something.

We still need to add in something to handle names that already exist, but I will leave that till next week.
For now we have a nice tool that will take any folder name and sort it alpha/numerically even if it contains spaces. and move it to the appropriate folder.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Sat Feb 05, 2011 7:25 am 
Offline
Newbie
Newbie

Joined: Sat Feb 05, 2011 7:21 am
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
Chasrobin,

Nice work on all the scripting I just started to look at the work you have been doing on the MovieMover.cmd and now for the questions.
1. How will you handle if there is not enough space on the drive the movie is being moved to?
2. What will happen if the move fails half way through?
3. Would it better to copy the movie over then once you have a successfully copy do some kind of compare if they match delete the source file?


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Sat Feb 05, 2011 9:56 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
dolivas27 wrote:
Chasrobin,

Nice work on all the scripting I just started to look at the work you have been doing on the MovieMover.cmd and now for the questions.
1. How will you handle if there is not enough space on the drive the movie is being moved to?
Answer: The Move command is nice in this regaurd if it fails it leaves the intended move where it was unharmed.
2. What will happen if the move fails half way through?
Answer: Same as above.

3. Would it better to copy the movie over then once you have a successfully copy do some kind of compare if they match delete the source file?
Answer: Move is a better choice for this very reason you won't have a half here half there situation.
If you were to use a copy command thats not an issue either as the folders would merge as long as the target was the same movie, so unique names are important which is also why next week we will look at error/overwrite situations as sometime you will want to overwrite your folder.



Good questions.
I also highly recomend each person create a set of test folders and try each situation that can come to mind before you commit to unmonitored use.
I have the originals to go back to, but some may not and it's a one shot deal.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Tue Feb 15, 2011 3:30 pm 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
Just ran accross a nifty tool that adds option to shutdown/logoff process.
it can be found here.
http://www.beyondlogic.org/solutions/shutdown/shutdown.htm

I would suggest, have both the regular "Shutdown.exe" from microsoft and this one named differently i.e "shutoff.exe" that way you have access to both.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Tue Feb 15, 2011 3:40 pm 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
Chasrobin wrote:
Alrighty then!

I hope I gave everyone plenty of time to wrap their brains around what we have done so far.
Cuz I have taken our moving tool and compressed it and made it able to handle dir names with spaces.
So without too much fiddling heres what we have.

Code:
Set testpath=c:\temp\move
Set movies=c:\temp\movies
Set tmp=C:\temp\movtemp

rem *****Check for folders**********************
If not exist c:\temp\nul mkdir c:\temp
If not exist c:\temp\nul mkdir c:\temp\move
if not exist c:\temp\movtemp\nul mkdir c:\temp\movtemp
Rem ********Begin list making*******************
Del /Q/S c:\temp\movtemp\*.txt

For %%A in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   Dir /AD /B %movies%\%%A* > %tmp%\mov-%%A.txt
   )
For %%A in (0,1,2,3,4,5,6,7,8,9) Do (
   Dir /AD /B %movies%\%%A* >> %tmp%\mov-#.txt
   )

Rem ***end list making**************************
rem ******begin move section*******************
For %%A in (#,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   FOR /F "tokens=1-9" %%a in (%tmp%\mov-%%A.txt) Do (cmd /c move "%movies%\%%a %%b %%c %%d %%e %%f %%g" %testpath%\%%A%)
   )

As you can see it has gotten much smaller, by massageing our basic commands and nesting one within another we can get compound actions.
I know it looks like a bunch of foriegn gobledy gook but ask away if you don't understand something.

We still need to add in something to handle names that already exist, but I will leave that till next week.
For now we have a nice tool that will take any folder name and sort it alpha/numerically even if it contains spaces. and move it to the appropriate folder.



Oh yes, you might have been waiting for how do we add an overwrite prompt to our tool.
Some of you may have figured out you can type "Move /?" at a command promt and already have the answer.
But I will post it anyway.
You modify the following line.
Code:
For %%A in (#,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   FOR /F "tokens=1-9" %%a in (%tmp%\mov-%%A.txt) Do (cmd /c move "%movies%\%%a %%b %%c %%d %%e %%f %%g" %testpath%\%%A%)


By adding a modifier to the Move command.
Code:
For %%A in (#,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,X,Y,Z) Do (
   FOR /F "tokens=1-9" %%a in (%tmp%\mov-%%A.txt) Do (cmd /c move /-Y "%movies%\%%a %%b %%c %%d %%e %%f %%g" %testpath%\%%A%)


This way if the folder already exisit it prompts for an overwrite instead of skipping as it does normally.

Fairly easy tweak.
Also just an update on the sleepkeeper tool now in use for a month or so works extremely well.
The move application also does double duty as a sorting tool for music, I never thought of that usage until my brother asked me about my music sorting tool that he found on my server.
Makes sense, works for any folder type.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Sat Feb 26, 2011 5:44 am 
Offline
.5TB storage
.5TB storage

Joined: Mon Feb 08, 2010 6:49 pm
Posts: 22
Thanks: 1
Thanked: 0 time in 0 post
dang you have been posting alot... i need to go back a few pages to catch up....putting together my system now since i moved to the same case finally...thinking of going win7 cause of 4gb ram and areca 1880i raid card with HP expander now.


Top
 Profile  
Thanks  
 Post subject: Re: The Beast is HERE!
PostPosted: Wed Mar 16, 2011 11:35 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
Sorry about the late reply, this year has been challenging due to my health.
Anywho I have been using 64bit win7 for approx 3-4 months now, performance is outstanding.
Compatability outstanding Mediacenter integration is brilliant.
The tools I have developed along the way have worked better than I had anticipated.
I do recomend making sure your hardware either sleeps well, or can support scheduled power on conditions.
It makes using a monster as your server easier on the power bill.
For instance in my house we all go to work, school, etc.. so I schedule the system to run my sleepkeeper script starting at 11PM if no client system are found to be in use it shuts the server down for the night.
Then in the bios I have it schedule to power on 20mins before I usually get home.
As you now raid controllers take a long time to fire up, then the system wants to index everything.
So I allow this 20min maintenence window, so by the time I sit down it's all warmed up and ready to roll.
The kids and GF, can play movies recording etc.. right away without even knowing the server wasn't available for several hours.
I use a EX490 as an always on file dump/web/security server, it's also where I keep our ITunes/music/photo's which I backup to the breast everyday.
When it comes to data I use a rule of thumb
1. files saved in one location are lost.
2. files saved in two physically seperate locations have 1 backup
3. File saved in three physically seperate locations are safe
add a backup to #3 and now you have redundancy.
Of course I only do this with files I cannot regenerate or gather from offsite backups to save on storage space.
So I do not backup my movie collection I can re-rip those from the originals, so massive GPT volumes are ok for this usage.
but I have several mirror sets on both servers for photos/music/records and I push a copy to a server at my bro's house to boot.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 225 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group