If one of your databases is offline when SqlBak performs scheduled backup you will receive the following error:
Failed to backup <database name> database with "Full" backup type: Database <database name> cannot be opened because it is offline. BACKUP DATABASE is terminating abnormally.
Internet is teeming with information that using DBCC SHRINKFILE operation on a regular basis is a bad practice, and we agree in general. It can lead to low performance and high fragmentation. We recommend avoiding shrinking the data and log files unless you have a good reason to do it (see below). If you have such a reason – you can find some useful tips below.
When you delete, update or insert the data, the SQL Server Database Engine updates the indexes automatically. Over time such changes lead to the data in the index being scattered all over the database, in other words – fragmented.