Command line backup

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
chrisbooyens
Posts: 2
Joined: Wed Nov 14, 2012 2:01 pm

Command line backup

Post by chrisbooyens »

Hi,

Very new - used Windows GUI previously. Trying to create command line batch file for backup to external drive. Creates backup, install new unformatted drive and restore with BartPE disk, restores but Windows 7 unable to boot complains about system to be repaired, sure I am missing something. I am trying to backup the complete drive to make it easy to restore to a replacement drive.

Please see and advise my batch file:

"C:\Program Files (x86)\TeraByte Unlimited\Image for Windows\V2\imagew.exe" /b /uy /d:0 /f:"f:\backup -$~YYYY$-$~MM$-$~DD$-$~HHMM$.TBI


Thanks
Chris
TeraByte Support
Posts: 3598
Joined: Thu May 05, 2011 10:37 pm

Re: Command line backup

Post by TeraByte Support »

looks fine provided drive zero is the drive to backup. when you restore
you'd do an entire drive restore as well (enable the update boot partition
option if available or via command line /upb).

"chrisbooyens" wrote in message news:3771@public.scripting...

Hi,

Very new - used Windows GUI previously. Trying to create command line batch
file for backup to external drive. Creates backup, install new unformatted
drive and restore with BartPE disk, restores but Windows 7 unable to boot
complains about system to be repaired, sure I am missing something. I am
trying to backup the complete drive to make it easy to restore to a
replacement drive.

Please see and advise my batch file:

"C:\Program Files (x86)\TeraByte Unlimited\Image for Windows\V2\imagew.exe"
/b /uy /d:0 /f:"f:\backup -$~YYYY$-$~MM$-$~DD$-$~HHMM$.TBI


Thanks
Chris

AlanD
Posts: 215
Joined: Sat Sep 17, 2011 4:45 pm

Re: Command line backup

Post by AlanD »

On 2012-11-17 5:41 AM, TeraByte Support wrote:
> when you restore
> you'd do an entire drive restore as well (enable the update boot partition
> option if available or via command line /upb).

I caught this from Terabyte while reading post:

"when you restore
you'd do an entire drive restore as well
(enable the update boot partition
option if available or via command line /upb)."

Have never seen this option before, or does this option only now appear
in latest versions (2.77)?
Also, is it applicable (and desirable) for all restore operations?

AlanD


George
Posts: 38
Joined: Tue Aug 30, 2011 5:28 pm

Re: Command line backup

Post by George »

The only thing I see is the last parameter starting with "f:\backup is
followed by a blank and there's no trailing double quote. (This may be a
cut-and-paste error.)
BTW, I image my partitions separately and on the full backup, I use the
--hash parameter with compression. (Can't remember what compression
number I use right now. Sorry.)

George
---
There are 10 kinds of people in the world.
Those who understand binary and
Those who don't.


On 11/14/2012 7:15 AM, chrisbooyens wrote:
> Hi,
>
> Very new - used Windows GUI previously. Trying to create command line batch file for backup to external drive. Creates backup, install new unformatted drive and restore with BartPE disk, restores but Windows 7 unable to boot complains about system to be repaired, sure I am missing something. I am trying to backup the complete drive to make it easy to restore to a replacement drive.
>
> Please see and advise my batch file:
>
> "C:\Program Files (x86)\TeraByte Unlimited\Image for Windows\V2\imagew.exe" /b /uy /d:0 /f:"f:\backup -$~YYYY$-$~MM$-$~DD$-$~HHMM$.TBI
>
>
> Thanks
> Chris
>
>

Post Reply