Jump to content

Recommended Posts

Posted

This sounds good Matt.

 

'Cos I ain't technically minded (well not to any great degree) I'll alert my colleague, who is, so that he can look into this for us.

 

I would have thought that Capita would have been provided something similar though.

Posted
However on a more negative point you will lose tidy backups from System Manager and more importantly, compression from the backups.

 

Eugh :(

Posted
Tidy backups still needed you to do it manually and compression was rubbish. They used Dynazip, and the company that made it went under, it couldn't support anything over 4gb and made the whole backup process waaay longer that it needed to be.
Posted

Ah yes, my archives are corrupt if I let system manager do it. I just have an export running from MSSQL instead. That file then goes on to tape each day. Just one file that gets overwritten, I do make a copy when running patches or dangerous operations though.

 

What I'd really like to see is working auditing.

Posted

SM Backups and Tidying Backups works ok for me.

And YES they are viable backups.

They regularly get sent down to Capita for UAT purposes and I fully working for me when I get there!

Posted

@Sivadam

Re-read my first post, Tidy backups is going in Autumn as part of SQL 2008, as per Jon Wood's presentation at the SIMS Update Semiar, you can get the sides from SupportNet -16028.

 

The issue DMcCoy is refering to is an known bug with large database files or the issue with the CRC. Both issues with Dynazip, which Capita will iron out by removing it.

  • 3 weeks later...
Posted

Hi Matt40k,

 

First off, this looks like it will be very useful! However, while testing, I have come across an issue.

 

It seems that compressing the file does not function correctly. A zip file of the same name as the *.bak file is created, but the *.bak file is not added to the zip file before it is deleted. It leaves us with no *.bak file and a zip file 1k in size. When ran from a command line, the script completes in second, not near long enough to compress a file.

 

Example from my test:

 

C:\Backup>tidybackups.exe /PATH:"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup" /DAYS:7
/ARCHIVE
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\ccsfms_20091022_140740.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\ccsfms_20091022_143508.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\master_20091022_140735.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\master_20091022_141333.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\master_20091022_143501.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\master_20091022_144008.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\msdb_20091022_140738.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\msdb_20091022_141334.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\msdb_20091022_143503.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\msdb_20091022_144010.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\sims_cp361_mnw_20091016_093113.zip
Compressed - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\ccsfms_20091106_143508.bak
Deleted - C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\ccsfms_20091106_143508.bak

 

Any advice you could offer to get this working would be appreciated as I would really like to use this! :)

Posted
Never had a proble with compression or the length of time it took to create them. I am not happy backup compression has gone :mad:

 

Glad it's gone, backups now take seconds not hours. Compression can be done later when the system is not use.

 

 

@Rawns

 

So you have a file called ccsfms_20091106_143508.bak and a file called ccsfms_20091106_143508.zip? Mmm... not actually thought of this scenario as it shouldn't happen automatically, I assume someone has uncompressed the file from the zip. I'll have a think how I can deal with this and make new release. Thanks for the feedback.

Posted

Updated version

  • Output date\time (good if your logging)
  • If .bak exists and a same named .zip exists, it'll search inside the zip for the same file, if it has the .bak already, it'll just delete the .bak. Otherwise it'll .zip it. (For example, you extract the .bak file and forget to clean up afterwards)
  • I've added the source code as well

tidybackups_source.zip

tidybackups.zip

  • Thanks 1
Posted

 

 

@Rawns

 

So you have a file called ccsfms_20091106_143508.bak and a file called ccsfms_20091106_143508.zip? Mmm... not actually thought of this scenario as it shouldn't happen automatically, I assume someone has uncompressed the file from the zip. I'll have a think how I can deal with this and make new release. Thanks for the feedback.

 

Not quite....

 

There is a file called ccsfms_20091106_143508.bak and when I run your script, a file called ccsfms_20091106_143508.zip is created, and straight after its creation, the ccsfms_20091106_143508.bak file is deleted without being added to the zip file. I assume you script makes the zip file and is ment to add the bak filew to it, then delete the bak file once completed?

 

I'll download your updated version and give it another go. :)

Posted
Updated version

  • Output date\time (good if your logging)
  • If .bak exists and a same named .zip exists, it'll search inside the zip for the same file, if it has the .bak already, it'll just delete the .bak. Otherwise it'll .zip it. (For example, you extract the .bak file and forget to clean up afterwards)
  • I've added the source code as well

 

Thanks for this! Just to let you know, no problems opening it here in WinRAR. :)

Posted
Not quite....

 

There is a file called ccsfms_20091106_143508.bak and when I run your script, a file called ccsfms_20091106_143508.zip is created, and straight after its creation, the ccsfms_20091106_143508.bak file is deleted without being added to the zip file. I assume you script makes the zip file and is ment to add the bak filew to it, then delete the bak file once completed?

 

I'll download your updated version and give it another go. :)

 

 

Hay Matt40k. Just to let you know this seems to be working perfectly now! The date/time feature is a nice little addition and this will defiantly help towards the headaches caused by low disk space because of uncompressed backups!

 

Thanks again. :)

Posted
Glad it's gone, backups now take seconds not hours. Compression can be done later when the system is not use.

 

I'm running two SIMS servers at the moment since I'm just about to roll out the new one system wide but my backups on the old server take over 25 mins to complete and on the new server they take 17 seconds.

 

HBJB

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...