Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Backup creates duplicates

$
0
0
I have created a Geodatabase backup script for my sql geodatabase. Everything runs fine, except for it creates duplicates and adds a 1, 2 ,3 onto the end and i just want it to replace over it. What am I missing?

Here is my current code


Code:

import arcpy
from arcpy import env


arcpy.env.overwriteOutput = True
env.workspace = "C:\Temp\CCAP.gdb"


CCAP = r'Database Servers\DSD15_SQLEXPRESS.gds\TonyTwoWay (VERSION:dbo.DEFAULT)\TonyTwoWay.DBO.CCAP'
CCAP2 = "C:\Temp\CCAP.gdb"


arcpy.FeatureClassToGeodatabase_conversion(CCAP, CCAP2)

Attached Thumbnails
Click image for larger version

Name:	Image2.jpg‎
Views:	N/A
Size:	13.5 KB
ID:	24442  

Viewing all articles
Browse latest Browse all 2485

Trending Articles