When I setup my ghost blog in Azure, I immediately utilized the backup feature of Azure. I did not really pay attention to it until I want to upgrade my Ghost to 0.90.
Always perform backups before doing any upgrades
Steps to analyze
logs hints me of what caused the partial succeed.
In order to analyze what happened here are the steps that I did:
- You have to go to the old portal. (I cannot see how I can do it in the new portal)
- Go to Management Services
- Sort the operation and look for
- Click details found at the bottom and you will see the following message:
Creating temp folder.
Retrieve site meta-data.
Backing up the databases.
Backing up site content and uploading to the blob...
File skipped - \site\wwwroot\content\data\ghost.db:
Sharing violation to C:\Resources\directory
Uploading metadata to the blob.
Backup completed! Total backup size: 91762 KB
The reason for that is Ghost is running and it cannot do a backup.
According to this answer
Unfortunately, right now you cannot automate the backup without shutting down Ghost. This is because it isn't smart to be copying the database while it could be being read/written to. A script that stops Ghost, makes a copy, and starts it back up would prob only ~1 second of down time, so if you have times that are slower, you could probably get away with it. If you can't, then just do the manual export for all the post data, and have a script backup all your images.
So in order to do automate this, I would have to create a backup script that would shut down Ghost first and then schedule a backup. This is not the best solution right now because this would include down time.