Posts

Showing posts with the label Backup

Reclaim Disk Space from Shadow Copies

Image
 Hi,  I have found an strange issue that occurs sometimes. Seems that if Backup software fails, or leaves a task incompleted, the shadow copy is not deleted. This causes the disk space to be retained. Majority of backup solutions today uses VSS in Windows for take some kind of "snapshot" of the disk. That is a good thing, but maybe you will experience this situation. In my case, sometiemes this happens when using an Hyper-V Cluster and a bacukp job is interrupted. The first sign is that suddenly you are low in disk space. And seems to be consuming more and more over time... If you have Cluster Shadow Volumes (CSV) and you count the content, you will find that the amount of disk space does not match. For instance, here I have about 2.8TB of data, and my disk has a total of 3.8. So I should have about 1TB of free space.  However, I only have 370GB of free space. This is a sign of something wrong. In my case, executing this commands should help. Fist, you should go to the se...

Scripting sobre Backup de SQL y subida a FTP

Alternativa para Backup en SQL Server El siguiente bat permite realizar backup de una o más bases de datos dentro de un servidor SQL SERVER. Está validado sobre un servidor con SQL 2008 R2. No es tan genial como el SQLandBackupFTP, pero es una forma de hacer lo mismo sin la necesidad de pagar licencias en un entorno empresarial. El script se guarda como un archivo .BAT y se ejecuta en Windows. Se puede agregar una tarea programada que lo ejecute diariamente y así mantenemos los backups de nuestras bases de datos aseguradas. Esto está pensado para un entorno donde realizamos respaldos full de la base de datos. El script creará archivos utilizando 7-zip, y el backup nativo de SQL. Los archivos creados tendrán incrustado en el nombre la fecha y hora de creación. Por ejemplo, un archivo zip puede ser: MYSQLBKP_2013_01_11_1700.ZIP Este es un archivo creado a las 17:00hrs del día 11 de Enero de 2013. El prefijo del archivo es customizable a lo que quieran. Es un script muy simp...