command line backup

  • Thread starter Thread starter bdj
  • Start date Start date
Hello!
I want to make an command-line based backup with standard commands.
I try something like this
(http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx)
xcopy x:\Dokumenter K:\Backup\Dokumenter /v /f /d /s /i


But files deleted at source directories will not be deleted at
destination-directory :-(
What can I do?

Greetings Bjørn!
Use Robocopy with the mirror option.
Download at JSI Tip 6705. What are the free Windows Server 2003 Resource Kit tools?
in the 'Tips & Tricks' at http://www.jsifaq.com
 
Hello!
I want to make an command-line based backup with standard commands.
I try something like this
(http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx)
xcopy x:\Dokumenter K:\Backup\Dokumenter /v /f /d /s /i


But files deleted at source directories will not be deleted at
destination-directory :-(
What can I do?

Use ROBOCOPY with the /PURGE or /MIR switch. See:
<http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en>.
 
bdj said:
Hello!
I want to make an command-line based backup with standard commands.
I try something like this
(http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx)
xcopy x:\Dokumenter K:\Backup\Dokumenter /v /f /d /s /i


But files deleted at source directories will not be deleted at
destination-directory :-(
What can I do?

Greetings Bjørn!

Wouldn't the point of having a backup be to be able to restore the files
that were deleted from the source?

....Just before you get too enthusiastic about it... :)

....Bill
 
billious said:
(http://www.microsoft.com/resources/documentation/windows/xp/all/
proddocs/en-us/xcopy.mspx)

Wouldn't the point of having a backup be to be able to restore the files
that were deleted from the source?

...Just before you get too enthusiastic about it... :)

...Bill
Another alternative would be Xxcopy, a much improved xcopy that
has hundreds of switches including /clone switch.
You could add various logs and with a short batch file, if
desired, MOVE 'no longer on source' files rather than just delete
them.
See Xxcopy.com.

Ray
 
I tried seraching for the Windows Server 2003 Resource Kit Tools on MS.
Where can you find a copy of these tools?

i want to make backup copies of the backup files to CD and I want to do it
with command line batch file. Is this the right tool? Robocopy?

Thanks
 
Back
Top