Jump to content

Backing Up files With Batch


BadSCR
 Share

Recommended Posts

I was thinking that I would Shear how i Backup my Files. It only copys the files that have changed or that are new.

Creat both Files in the same Folder.

File one: LORbackuper.bat

File two: AutoBackup.bat




Step one: Copy, and past the Code into Notpad

Step two: Fill-in the needed info

Step three: Save file as....

step four: Run the Bat file






To remove the AutoRun of the LORbackuper.bat

step one: start

step two: run

step three: %userprofile%Start MenuProgramsStartup

step four: Delete LORbackuper.bat

Link to comment
Share on other sites

::Just open The File in Notpad and make the needed info changes.






@echo off

:: This Will Backup The LOR files To where you want them.
:: Just Enter The INFO needed below; after the "=" with no spaces.

:: after giving the needed INFO
:: Save the file as "LORbackuper.bat"



:: DO NOT Change "set XXXXXX="


:: Where The "Sequences Folder" is that needs to be Backed-up.
:: EX...set Seq=C:Documents and SettingsadminMy DocumentsLORSequences
set Seq=


:: Where The "Audio Folder" is that needs to be Backed-up.
:: EX...set Aud=C:Documents and SettingsadminMy DocumentsLORAudio
set Aud=


:: Where To Save the Backed-up Files and folders TO:
:: EX...set backuplor=D:backupLORfilesLOR
set backuplor=




::-------------------------------------------------------------

:: Not For you to mess with
:: DO NOT Change From here Down.

::MAIN PROGRAME


set backupcmd=xcopy /s /c /d /e /h /i /r /y

:: Backup LOR Sequences Files
%backupcmd% "%seq%" "%backuplor%Sequences"

:: Backup LOR Audio Files
%backupcmd% "%Aud%" "%backuplor%Audio"



:: use below syntax to backup other directories...
:: %backupcmd% "...source directory..." "%drive%...destination dir..."
:: are for comments

@pause
exit


Attached files LORbackuper.txt

Link to comment
Share on other sites

@echo off
:: Save the file as "AutoBackuper.bat"




echo.
echo This Will make your "LOR Backuper Programe" to Start with windows
echo.
pause

::MAIN PROGRAME
set backupcmd=xcopy /c /d /h /i /r /y


:: Backup LOR Files
%backupcmd% "LORbackuper.bat" "%userprofile%Start MenuProgramsStartup"

@pause
exit




Attached files AutoBackup.txt

Link to comment
Share on other sites

I am glad you brought this up. I got this nasty adware bug on my computer the other day and I can't get rid of it. Anyways, it causes my computer to restart out of no where. So if I am working on a sequence it could just close out of no where and I lose all my work.

It doesn't appear that LOR has a auto save function. So can this little script you wrote be used to auto save files if it should just suddenly close?


I have S2 running with my StartWatch. I would like to find a way to enable shows.

Link to comment
Share on other sites

No it will not, But i will see what i can do.

I don't know, I will look into it.



The two little script that i wrote only auto-backups the files at start-up of your computer.

The other way to do the backup is to open LORbackuper.bat

You don't have to use the autoBackup.bat




From what i can see there is a CTRL+S in the LOR software to save. I may be able to use that to make a auto-save for LOR (By sending that key board cammand every 10 minutes)

but my little programe for that will have to run in the background and it will auto save for any program that has the CTRL+S protocall



CAN SOMEONE TELL ME WHERE I CAN FIND The LOR's COMMAND-LINE Commands. PLZ, It would be of help to me for scripting.

Link to comment
Share on other sites

OK I have Something Its a Bata for me.

There are two of them. All of my programes have to be in the same folder.

Programe one: AutoSaveWithBackup.bat You have to go in and fill the needed info in.

Program Two: AutoSaveWithExtBackup.bat Place the above LORbackuper.bat with AutoSaveWithExtBackup.bat









@echo off

:: This Will Backup The LOR files To where you want them.
:: Just Enter The INFO needed below; after the "=" with no spaces.

:: after giving the needed INFO
:: Save the file as "ASaveLORBackuper.bat"



:: DO NOT Change "set XXXXXX="

:: Where The "Sequences Folder" is that needs to be Backed-up.
:: EX...set Seq=C:Documents and SettingsadminMy DocumentsLORSequences
set Seq=


:: Where The "Audio Folder" is that needs to be Backed-up.
:: EX...set Aud=C:Documents and SettingsadminMy DocumentsLORAudio
set Aud=


:: Where To Save the Backed-up Files and folders TO:
:: EX...set backuplor=D:backupLORfilesLOR
set backuplor=


:: How Long between Auto-Saves (In Milli-Seconds) (600000 = 10 Minutes)
::(1000 Milli-Seconds = 1 Second) (60000 Milli-Seconds = 1 Minute)
:: EX...set Delayed=600000
set delayed=600000




::-------------------------------------------------------------

:: Not For you to mess with
:: DO NOT Change From here Down.

::MAIN PROGRAME
:start

:: Just a message
echo.
echo This is a AutoSave Programe Using CTRL+S
echo.
echo This Programe is running
echo.



:: This Tells it to Wait
nircmd.exe wait %delayed%



:sendkey

:: will send the keys CTRL+S

nircmd.exe sendkey ctrl down
nircmd.exe sendkey s down

nircmd.exe sendkey ctrl up
nircmd.exe sendkey s up


:backupit

::This will run your LORbackuper.bat to backup the LOR files
call LORbackuper.bat

goto start

@pause
exit



Attached files AutoSave.zip

Link to comment
Share on other sites

One Small problem with AutoSaveWithExtBackup.bat


On the LORbackuper.bat edit the file.

At the very bottum delete...

@pause
exit


And then save

----------------------------------------



There is one Bug in the program.

If you are using a flash drive to backup to; The drive letter of the flash drive could change and my program will not backup the files right.



Also note, I don't think it will work on a CD/DVD burner as a backup medium.



Let me know what yall think about these scripts.

Thanks,

---------------------------------------------

Also att. is an updateed AutoSave/Backuper files.


Attached files AutoSaveV2.zip

Link to comment
Share on other sites

PLZ Let me know if the Scripts are working.

And if you are haveing trobule with makeing the BAT file

and how my Instructions are.





PLZ, tell me what you think of the Scripts.

Thanks,



PS. It is very important that the scripts and the Nircmd.exe are in the same folder.

Link to comment
Share on other sites

The LOR Backuper V1

*Installing

Step one: Unzip the files

Step two: Copy All files to the main(root) directory of the flash-drive where your Backups will be saved to

Step three: Open File INSTALLer.bat

Step four: Open file autorun.bat


The LOR Backuper V1



Attached files LOR Backuper V1.zip

Link to comment
Share on other sites

READ THIS POST BEFORE DOWNLOADING.

ADMIN please Delete This Thread. (This one is too Junked Up) Thanks

"The LOR Backuper V1" I have Not Teasted and Had i did I would have noticed the Big error on my part. I leftout a very improtant pice of Code.



"The LOR Backuper V3" Works I have Tested it Please goto the new thread.

I have Moved this to:

http://lightorama.mywowbb.com/view_topic.php?id=18278&forum_id=81

And sorry to yall that have tryied "The LOR backuper V1"

I will test every one of them for now-on to see if they work right for me.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...