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
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)