backing up

P

Paul Maser

I'm backing up a directory to another server using xcopy across the lan.
Is there a better way?
I also would like to write the output to a text file, while printing to the
screen?
Thanks.
 
M

Matthias Tacke

Paul said:
I'm backing up a directory to another server using xcopy across the lan.
Is there a better way?
I also would like to write the output to a text file, while printing to the
screen?

That depends on your needs and environment.
Robocopy (Reskit),xxcopy (http://www.xxcopy.com) may be alternatives.

There are unix-like tee utilities to fork output on screen and to a
file.

In Bill Stewart's Batching tooll kit is a TEE.EXE and
Frank P. Westlake has one http://gearbox.maem.umr.edu/fwu/

HTH
 
A

Al Dunbar [MS-MVP]

Matthias Tacke said:
That depends on your needs and environment.
Robocopy (Reskit),xxcopy (http://www.xxcopy.com) may be alternatives.

The latest version of RoboCopy has a /TEE switch that does this as well. It
also allows you to reduce its bandwidth demand by specifying an inter-packet
gap delay in milliseconds, and can be used to synchronize two folders.

/Al
 
M

Michael Bednarek

I'm backing up a directory to another server using xcopy across the lan.
Is there a better way?
I also would like to write the output to a text file, while printing to the
screen?

I concur with Matthias regarding Robocopy (V-XP010); it has i.a. these
options:

:: Logging Options :
::
/L :: List only - don't copy, timestamp or delete any files.
/X :: report all eXtra files, not just those selected.
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.

/NS :: No Size - don't log file sizes.
/NC :: No Class - don't log file classes.
/NFL :: No File List - don't log file names.
/NDL :: No Directory List - don't log directory names.

/NP :: No Progress - don't display % copied.
/ETA :: show Estimated Time of Arrival of copied files.

/LOG:file :: output status to LOG file (overwrite existing log).
/LOG+:file :: output status to LOG file (append to existing log).

/TEE :: output to console window, as well as the log file.

/NJH :: No Job Header.
/NJS :: No Job Summary.
 
D

Dave Cooper

I just use >C:\Output.txt, at the end of the command line
Al Dunbar said:
to
the

That depends on your needs and environment.
Robocopy (Reskit),xxcopy (http://www.xxcopy.com) may be alternatives.

The latest version of RoboCopy has a /TEE switch that does this as well. It
also allows you to reduce its bandwidth demand by specifying an inter-packet
gap delay in milliseconds, and can be used to synchronize two folders.

/Al
 
M

Matthias Tacke

Dave said:
I just use >C:\Output.txt, at the end of the command line

He wanted to have *both*, output to screen and to file.

BTW no need to attach the whole thread to a one liner.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top