Select to view content in your preferred language

Delete Datastore Backup

2845
7
09-25-2019 11:55 PM
RainRain1
Emerging Contributor

Hello,

    We have Datastore configured in HA with Primary and Standby servers (v10.5.1). It had replication issue and finally it was resolved and now Changing Roles(Active/Standby) are working fine. However, when I try to take backup of datastore, it fails for Relational with a following message:-

arcgis data store backup failed. error 'failed to create relational data store export file'

Where as it works fine for TileCache.

When I run listbackups.bat, it shows all the previous manual backups for Relational datastore which I ran with a status 'BackupRunning'(shown below):-

PS C:\Program Files\ArcGIS\DataStore\tools> .\listbackups.bat
Backups in the relational data store:
================================================================================
Backup_Name Status Backup_Time Mode
================================================================================
db_6tzxk-20190606165334426 BackupComplete 2019-06-06 19:53 scheduled
ds2 BackupRunning 2019-09-22 14:44 manual
ds2-bkp BackupRunning 2019-09-22 14:48 manual
db_6tzxk-20190925065300660 BackupRunning 2019-09-25 09:53 manual
db_6tzxk-20190925091315917 BackupRunning 2019-09-25 12:13 manual


Backups located at: 'C:\arcgisdatastore\backup\relational'.

Backups in the tile cache data store:
================================================================================
Backup_Name Status Backup_Time Mode
================================================================================
tcs_oco7oq1r-20190925065024362 BackupComplete 2019-09-25 09:50 manual


Backups located at: 'C:\arcgisdatastore\backup\tilecache'.

When I try to delete the jobs as follows, it doesn't get deleted!

PS C:\Program Files\ArcGIS\DataStore\tools> .\deletebackup.bat db_6tzxk-20190925065300660
You are attempting to delete backup 'db_6tzxk-20190925065300660'. This operation is irreversible.

Do you wish to continue (Yes or No)?Yes

Error encountered: Attempt to delete backup 'db_6tzxk-20190925065300660' is not allowed. You can only delete a manual backup that is not required for future restore.

Any support will be much appreciated..

Thanks

0 Kudos
7 Replies
RainRain1
Emerging Contributor

Adding to the above issue:-

I am trying to add new backup location pointing to network share. It also fails with a message 'There is a database backup process running'. So, it wouldn't allow adding new location without killing the jobs which are struck. I ran these backup jobs few days or weeks before and it had given the error message immediately saying export file can not be created. ???

0 Kudos
PaulBrandt
Regular Contributor

Did you find a resolution to this problem? I have something similar where my backup drive filled up, because it appears that the automatic backup system is not removing the backups after the setting for "Days backup retained" has expired.I get a similar error when I try to delete one of these scheduled backups saying it can't delete because it is not a manual backup, so I'm hoping if you found a work around to using the tool, that might work for me as well.

mofree
by
Emerging Contributor

Same issue here, 3 years later, on 10.9.1......starting randomly keeping backup files after the date of expiration and will not allow me to delete.

mgress12
Occasional Contributor

I'm seeing the same behavior at 10.9.1 - data store backups being retained beyond the expiration date. I tried running the config utility and restarting the data store service but no luck so far. Did you find a solution?

0 Kudos
ahagopian_coj
Regular Contributor

Did you hear back from anyone on a fix to this?

0 Kudos
ahagopian_coj
Regular Contributor

We are having the same problem.  Did you ever figure out how to get the "days backup retained" policy to be honored?

0 Kudos
JimJimerson
Emerging Contributor

bump, any solutions out there for this problem?

0 Kudos