?
Solved

Robocopy type tools

Posted on 2006-06-05
15
Medium Priority
?
985 Views
Last Modified: 2007-12-19

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

0
Comment
Question by:FPPADMIN
  • 6
  • 5
12 Comments
 

Expert Comment

by:Drinker7
ID: 16832243


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 
0
 

Author Comment

by:FPPADMIN
ID: 16832702


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
0
 
LVL 13

Accepted Solution

by:
prashsax earned 1000 total points
ID: 16833726
No, you cannot copy open files using these kind of tools.

You need to buy a Replication tool like NSI Double Take. It can copy open files easily.

Or you need to use NTBackup with Volume Shadow Copy. It can also backup open files.

Here is the link to a sample script to copy PST using volume shadow copy.

http://blogs.msdn.com/adioltean/archive/2005/01/05/346793.aspx
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:prashsax
ID: 16833930
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"

0
 

Author Comment

by:FPPADMIN
ID: 16834347

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?
0
 
LVL 13

Expert Comment

by:prashsax
ID: 16834460
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

0
 

Author Comment

by:FPPADMIN
ID: 16834506

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?
0
 
LVL 13

Expert Comment

by:prashsax
ID: 16834519
Yes, thats correct.

0
 

Author Comment

by:FPPADMIN
ID: 16840322

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?

0
 

Author Comment

by:FPPADMIN
ID: 16840394

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

Author Comment

by:FPPADMIN
ID: 16840819

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!!
0
 
LVL 13

Expert Comment

by:prashsax
ID: 16842148
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.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question