Duplicate name on backup - how to avoid

Discussion in 'Control Panel API' started by amweiss, Feb 6, 2015.

  1. Hi All
    I'm using the api for making a backup of the 2008 r2 sql database..but I'm getting this as a response

    Dasp.CustomerAPI.Web.UserErrorException: Backup failed. File with the same name already exists.

    Obviously I could manually go in everyday and manually delete the backup file that was previously created, but that eliminates the benefits of the api.

    I'm using this url for the api, if that helps

    https://api.discountasp.net/1.0/customerapi.asmx/Sql2008R2CreateBackup?key=xxx&database=yyy

    Is there any way to eliminate this problem?
    Thanks
     
    Greg Lindberg likes this.
  2. FrankC

    FrankC DiscountASP.NET Staff

    how are you using the API? In an application?

    I would create an FTP session to remove the backup file before you perform backup.
     
    mjp likes this.

Share This Page