I have made a script to capture image of drives on remote computers.
This works very nicely but I noticed that compression is either gzip or
bzip.
I ran both and it seems they are the same.
I also noticed that the GUI tool has BZip2, not bzip. Is that by design or
just an oversight?
Love your program!
please keep up the great work1
Here's my script in case anyone is interested....
@echo off
rem Read a list of computers and run odin backup on those computers
set strdate=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%
for /f %%a in ('type "c:\computers.txt"') DO (
IF Not EXIST "\backup\E$\images\%%a" (
mkdir "\backup\E$\images\%%a"
There is no bzip compressor afaik. If there is, it was a predecessor to the
bzip2 format.
On Aug 7, 2013 7:20 PM, "amtech" amertech@users.sf.net wrote:
Hi,
I have made a script to capture image of drives on remote computers.
This works very nicely but I noticed that compression is either gzip or
bzip.
I ran both and it seems they are the same.
I also noticed that the GUI tool has BZip2, not bzip. Is that by design or
just an oversight?
Love your program!
please keep up the great work1
Here's my script in case anyone is interested....
@echo off
rem Read a list of computers and run odin backup on those computers
set strdate=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%
for /f %%a in ('type "c:\computers.txt"') DO (
IF Not EXIST "\backup\E$\images\%%a" (
mkdir "\backup\E$\images\%%a"
Though I'd tweak on the script abit
Not sure if all the back slashes will show up
Note:Thecomputerlistdoesn't use back slashes so ping will workNote: \\backup is a server so, it should have two back slashes in front of itNote: The \\%%a after PSEXEC has two back slashes----------------------------------------------------------------------------@echo offRem Read a list of computers and run odin backup on those computersset strdate=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%for /f %%a in ('type"c:\computers.txt"') DO (Rem see if the computer is onlineping -n 1 %%a | find "Reply from " >NUL IF NOT ERRORLEVEL 1 ( Rem create a folder if it'snotalreadythereIFNotEXIST"\\backup\E$\images\%%a"(mkdir"\\backup\E$\images\%%a")RemimagethecompletedrivePSEXEC"\\%%a"-udomain\administrator-pPassword-c-f-hodin.exe-makeSnapshot-backup-compression=gzip-source=0-target=\\backup\E$\images\%%a\%%a-Cdrive-%strdate%.imgRemimagethefirstpartitionRemPSEXEC"\\%%a"-udomain\administrator-pPassword-c-f-hodin.exeRem-makeSnapshot-backup-compression=gzip-source=1Rem-target=\\backup\E$\images\%%a\%%a-Cdrive-%strdate%.imgRemimagethesecondpartitionRemPSEXEC"\\%%a"-udomain\administrator-pPassword-c-f-hodin.exeRem-makeSnapshot-backup-compression=gzip-source=2Rem-target=\\backup\E$\images\%%a\%%a-Ddrive-%strdate%.img))cmd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have made a script to capture image of drives on remote computers.
This works very nicely but I noticed that compression is either gzip or
bzip.
I ran both and it seems they are the same.
I also noticed that the GUI tool has BZip2, not bzip. Is that by design or
just an oversight?
Love your program!
please keep up the great work1
Here's my script in case anyone is interested....
@echo off
rem Read a list of computers and run odin backup on those computers
set strdate=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%
for /f %%a in ('type "c:\computers.txt"') DO (
IF Not EXIST "\backup\E$\images\%%a" (
mkdir "\backup\E$\images\%%a"
PSEXEC "\%%a" -u domain\administrator -p Password -c -f -h odin.exe
-makeSnapshot -backup -compression=gzip -source=1
-target=\backup\E$\images\%%a\%%a-Cdrive-%strdate%.img
PSEXEC "\%%a" -u domain\administrator -p Password -c -f -h odin.exe
-makeSnapshot -backup -compression=gzip -source=2
-target=\backup\E$\images\%%a\%%a-Ddrive-%strdate%.img
)
)
cmd
Nice script.
There is no bzip compressor afaik. If there is, it was a predecessor to the
bzip2 format.
On Aug 7, 2013 7:20 PM, "amtech" amertech@users.sf.net wrote:
Though I'd tweak on the script abit
Not sure if all the back slashes will show up