Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering if there is any way to duplicate an in use File Geodatabase?

The Geodatabase I have is being used by ArcGIS Server for a few of our web mapping applications. I understand I could stop the services and copy the Geodatabase after, and that is an option, but I'd have to do it at 2 AM when our users aren't online.

So being lazy and wanting to enjoy my sleep, I want to find a way to copy this GeoDatabase in its entirety while it is in use.

I am a pretty good programmer, so a programming or ArcGIS solution would be perfect.

share|improve this question
If it's a file geodatabase, I don't think you are going to be able to copy it while your map services are hitting it, due to the locks that will be place. I've had to do this before (several years ago) and had to programmatically stop the services, do the database work, then restart the services. – Chad Cooper May 2 '13 at 13:47
Chad is right the service needs to be stopped programmatically at 2am - also see this post… – Mapperz May 2 '13 at 13:49
Yea it's a File GeoDatabase (I should have indicated that in the question). Dang, I was really hoping there was a way to do this. – Cody Brown May 2 '13 at 13:53
Why do you want to copy the in-use geodatabase? Is this a SDE file geodatabase where edits are being pushed to it? – artwork21 May 2 '13 at 13:58
@artwork21 It's an older File GeoDatabase that we loaded a great deal of information into for the purposes of our web mapping apps. We need to create an exact copy of it so that we can set it up on a new server. We have all the data contained within the GeoDatabase kicking around in non-locked GeoDatabase's, but I want an exact copy not a re-creation. – Cody Brown May 2 '13 at 14:04
up vote 2 down vote accepted

Use a program like Active Sync to try and copy it. It should be able to continually try and grab the files within the Geodatabase when they become free from a lock. The locks are only in place when the service is being actively drawn or queried.

share|improve this answer

You can use AGSSOM command within a python script to stop/start the services at 2am, which may be initiated by a windows scheduler calling a bat file to run your python script.

share|improve this answer
I agree that this could be done, but my main question is asking whether an in use File GeoDatabase can be duplicated. – Cody Brown May 2 '13 at 14:27
And you tried to manually copy and paste it within ArcCatalog or Windows Explorer? – artwork21 May 2 '13 at 14:37
You get an error in ArcCatalog that it is in use and nothing is copied. In Windows Explorer, I think I may have found a way to do it. I tried coping the entire GeoDatabase, which failed when it tried to copy the lock files. I then deleted everything in the copied GeoDatabase, but kept the directory. I then pasted all non-lock files from the original GeoDatabase into this one. It worked fine, but I have some concerns that there may be some corrupt data withing it. Doing some tests now. – Cody Brown May 2 '13 at 14:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.