|
Re: Scripted Backup Batch Files
Orion wrote:
> So say my batch file would look something like this
>
> net use Q: \\10.250.212.253\FLF01\userdata\%computername% LetMe0ff
> (that makes sure that my network drive is mounted, and that its dumping the
> files into the directory of the computer)
> XCOPY "C:\My Documents\*.*" Q:\ /D /S /H /R /Y
>
That looks right but I am not sure about the net use command as I don't
use it. You could test it to make sure.
> Now I am not sure how xcopy works but will this copy over active/open files
> as well?
It should, unless they are locked. But to make sure I would schedule
the script to run when the computer is inactive.
> and will this allow me to restore outlook if the computer crashes.
>
I don't use Outlook so I don't know about this.
> and can I use a command like echo to make a timestamp file every time I run
> the script, something like echo %date% but written to text file of my choice
>
>
I use the touch command but you could use echo %date% %time% > lastbu to
do the same thing.
> thank you very much
>
> Orion
>
|