command line backup

J

Jerold Schulman

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
 
M

Michael Bednarek

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>.
 
B

billious

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
 
R

Ray McCormick

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
 
G

Guest

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
 

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