Link to home
Start Free TrialLog in
Avatar of FPPADMIN
FPPADMIN

asked on

Robocopy type tools


Does anyone know of any tools that you can use to copy files in use? I have used robocopy on an XP machine but that doesnt work completely. I  have created a .bat file in which i am specifiying copying my whole c:drive to an external hard drive (f:).
 
This is my script "ROBOCOPY c:\ f:\ /s /NP /PURGE /R:1 /W:1"

The script works fine and i can see practically my whole c: drive on the external drive (f:). However pst files for example are not copied as they are in use. So how do i copy files which are in use using a script? Can robocopy do this? if so what commands do i use? If not what other FREE tools can i use to achieve this.

Thanks
Vijay

Avatar of Drinker7
Drinker7



Yeah bro... try out XXCopy.  It's the closest thing I can find to Robocopy.  You can find it here:

http://www.xxcopy.com/index.htm 
Avatar of FPPADMIN

ASKER



Ok but i dont see it mentioning anything about copying files whilst open...do you? remeber its just gona be a 1 way-copy and dump and (overwrite if need be)... but everything!!

If i download this tool..do i just put the exe in the C:\windows\system32\

and then create a .bat file with the commands?

Vijay
ASKER CERTIFIED SOLUTION
Avatar of prashsax
prashsax

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can also take backup using NTBackup with Volume Shadow Copy Started on the target machine.

ntbackup backup c:\foldername\local.pst /j "PST backup" /f "\\servername\foldername\backup.bkf"


Prashsax,

what do you mean by the servername hear? as im using a laptop and basically copying everything from "c" to an external seagate drive which is "f" What would the script be like in this case? (there is no server)

would i have to create two bat files and two scheduled tasks?...one with this.. "ROBOCOPY c:\ f:\ /s /NP /PURGE /R:1 /W:1"

and another with the ntbackup?....or could i put both scripts together in the same file?
You can put both tasks in same batch file.
They will run one after another.

ntbackup backup c:\foldername\local.pst /j "PST backup" /f f:\foldername\backup.bkf


so in my backup.bat file i put:

ROBOCOPY c:\ f:\ /s /NP /PURGE /R:1 /W:1
ntbackup backup c:\foldername\local.pst /j "PST backup" /f f:\foldername\backup.bkf (specifying the paths obviously)

then create a schedule task and use this backup.bat?
Correct?
Yes, thats correct.


My pst file is located in the c:drive as shown below and so i want that file to be copied to the root of the f:drive.

ntbackup backup C:\backup2.pst /j "PST backup" /f f:\backup.bkf

Can you confirm this is correct?

What is the "j" for?


Also how do start Volume Shadow Copy on the target machine???

Prashsax,

I ran the script.... ntbackup backup C:\backup2.pst /j "PST backup" /f f:\backup.bkf..  thats all i have done..
it created a backup.bkf file on the external hard drive (f:) however the backup.bkf is only 10.0kb which suggests to me its not fully backed up?? Any ideas?

Also when i double click the backup.bkf file it starts the backup/restore wizard,

I click next > select restore file and settings > and the next wizard box shows on the left ... "backup.bkf created 06/06/2006 at 09.58" If you expand the tree it shows "c"  i dont understand how i would restore the pst if at all it has succsfully backed up? HELP!!
It seems, their is some problem with volume shadow copy service.

See the event logs on windows. And check if Shadow copy has logged any errors.