It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
lukew: Ok, in tests my little batch program works very well. However, is there any way to see backup progress directly in the CMD window as the program works?
AFAIK robocopy shows progress
see this
http://www.youtube.com/watch?v=f1Ew4tkboL4

EDIT: I know that Windows 7 does not contain ntbackup but it seems it can be installed and used on that OS. I know many complains about tool but I like it. For my work I wrote a batch file that runs on a schedule and creates a backup of user defined locations to a compressed folder.
Post edited November 28, 2012 by tburger
Hmm, robocopy does look very good. However, it seems that it's not present in Windows XP as standard and that's kind of a deal breaker for me.

In which case, going back to my previous question, is there a way to see backup progress in the CMD window using xcopy?
avatar
lukew: Hmm, robocopy does look very good. However, it seems that it's not present in Windows XP as standard and that's kind of a deal breaker for me.
Check what OS the batch file is run at, and then run appropriate commands. Take a look here for a sample OS recognition script. Be aware that the slashes seem to be misprinted in the article.

Also, make sure you do read on the "if" and "for" commands, since they can help a lot with batch files.
avatar
lukew: Hmm, robocopy does look very good. However, it seems that it's not present in Windows XP as standard and that's kind of a deal breaker for me.
avatar
JMich: Check what OS the batch file is run at, and then run appropriate commands. Take a look here for a sample OS recognition script. Be aware that the slashes seem to be misprinted in the article.

Also, make sure you do read on the "if" and "for" commands, since they can help a lot with batch files.
That is a brilliant solution. Thanks very much. :)
avatar
Wishbone: How do you feel about VBScript? Considerably more powerful, and quite easy to work with.
avatar
lukew: Never actually tried it. It seems that xcopy doesn't work in Windows 7 so I may have try something else anyway.

EDIT: Actually, it does seem to work. I had to run the batch file as admin and remove the /o switch from the xcopy line. :)
Win 7 has Robocopy an advanced version of xcopy.
Not exactly a script, but try Syncback. Syncback is an Advanced freeware program for copying, synchronizing and verifying files between folders both locally and via network.
I'll take a look at that, thanks Solei. :)

Anyway, turns out, I'm an idiot. Xcopy shows backup progression in the CMD window by default. It wasn't for me because I was making it output to a .log file. As soon as I removed that bit of code, it showed the progression in the window, lol.
The best backup/sync software I know, and I tried a lot of it at work, is Super Flexible File Synchronizer, now Syncovery. The version I have has an offline key.