Sitecore MCS Custom Backup Failed Due to Size Limit

Sitecore Managed Cloud Service provides the default setting for the Custom Backup of our CD instance.

sitecore-mcs-custom-backup-failed-due-to-size

In your environment, you can see all default settings from the Backup Action tab. As our custom backup had a limit of 10GB with a linked database of 4 GB so due to the size of the logs and other files we are sometimes getting failed custom backups. Automatic vs. Custom Backups

Hence regarding your backup failures, that is mostly due to "The website + database size exceeds the 10 GB limit".

I did a quick check and it seems that the folder in site/wwwroot/App_Data/Logs is using up to 6GB of available space.

To view the file usage of each folder, you can go to KUDU, open the PowerShell console, and run this command in the WWWroot:

Solutions:

Regarding the solution to the failed backups and why Sitecore prefers the use of Custom Backup as it supports. It is due to Partial backups being supported for custom backups.

Partial backups allow us to choose which folder to be excluded from backup, such as unnecessary logs files and caches. Please read more in Back up an App - Azure App Service - Configure Partial Backups.

Create a _backup.filter file for your web application. Sitecore recommends the following, but you are free to customize as you see fit.

  • \site\wwwroot\App_Data\diagnostics
  • \site\wwwroot\App_Data\logs
  • \site\wwwroot\App_Data\mediaIndexing
  • \site\wwwroot\App_Data\packages
  • \site\wwwroot\App_Data\debug
  • \site\wwwroot\App_Data\viewstate
  • \site\wwwroot\App_Data\MediaCache
  • \site\wwwroot\App_Data\DeviceDetection

Upload _backup.filter file to the D:\home\site\wwwroot\ directory of your site using FTP or any other method. If you wish, you can create the file directly using Kudu DebugConsole and insert the content there.

Happy Sitecoreing ðŸ˜Š

Comments

Popular posts from this blog

Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

Import CSV Data in Sitecore Using PowerShell: Part-3

Sitecore Technology MVP Journey 2022