![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
| MIS Systems Do you use SIMs or similar? Try and ease your woes here. |
| ||
| | | LinkBack | Thread Tools | Search Thread |
| Sponsored Links |
| | #1 |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | As you are all hopefully aware, Capita will be releasing SIMS Autumn release on the 9th November, with any lucky. Included in this is support for MSSQL 2008. There are a number of changes that will affect your setups, such as transaction log being replaced with Simple recovery model, so no more shrinking the log file! However on a more negative point you will lose tidy backups from System Manager and more importantly, compression from the backups. (See Resource: 16028) I know this may sound bad, however, I think is a positive step. Have you ever had a problem in SIMS and you've had the head or such breathing down your neck to fix it, so you log a call with Capita or your Local Authority only to have them say, it's a known bug and there is a patch. So you decide to do it during the day, only to have dbupgrade take what seems like a lifetime to run a ruddy backup, and it appears to have crashed, at this stage you start to ask yourself, do I quit and use the /nobackup option? Well if you've ever looked into this, Capita did a while ago create a patch that removes compression, and OMG, it does help, I've seen backups take seconds (if the database is loaded in RAM and you have fast discs). So this is good right? We'll how many of you routinely check you MSSQL\backup folder? Now you need start to look at compression as well. Lovely. Well I didn't like the idea of doing this, so I've created a program that will do this for you. I've uploaded it onto SupportNet, ID 688, failing that, it's attached on here too. Overview. It's entirely written in C#, hopefully well. It contains a built-in ZIP library - SharpZip, which in my opinion appears to be quicker then the Microsoft ZIP library. It only requires .NET Framework 2.0 - or it should Usage Download the program, save it to the local disc on the (SIMS) MSSQL server, I generally say create a batch file, but you can do whatever, run from command line… Tidybackups.exe /PATH:[PATH TO YOUR MSSQL\BACKUP] /DAYS:[NO OF DAYS] [/ARCHIVE] For example: Tidybackups.exe /PATH:"C:\program files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup" /DAYS:30 /ARCHIVE This will delete any compressed files (.zip) and MSSQL backups (.bak) over 30 days old, any remaining MSSQL backups will be compressed, and the uncompressed version deleted. If you want to do logging, you can ofcourse redirect the output to a file, so add >>log.txt This will write any files that are compressed and\or deleted. Once you have create a batch file, I would then schedule it to run, daily, just to keep on top of things. Hopefully you'll find this useful, just remember it's not just limited to SIMS! Matt |
| |
| | #2 |
![]() Join Date: Feb 2009 Location: Dronfield - Derbyshire
Posts: 393
Thanks: 39
Thanked 49 Times in 38 Posts
Rep Power: 9 | 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. |
| |
| | #3 |
![]() Join Date: Mar 2007 Location: Reading, UK
Posts: 875
Thanks: 80
Thanked 35 Times in 29 Posts
Rep Power: 13 | |
| |
| | #4 |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | 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. |
| |
| | #5 |
![]() Join Date: Oct 2005 Location: Isle of Wight
Posts: 2,674
Thanks: 6
Thanked 300 Times in 254 Posts
Rep Power: 69 | 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. |
| |
| | #6 |
![]() Join Date: Feb 2009 Location: Dronfield - Derbyshire
Posts: 393
Thanks: 39
Thanked 49 Times in 38 Posts
Rep Power: 9 | 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! |
| |
| | #7 |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | @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. |
| |
| | #8 |
![]() Join Date: Jun 2009 Location: Somerset
Posts: 71
Thanks: 18
Thanked 2 Times in 2 Posts
Rep Power: 2 | 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: Code: 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 |
| |
| | #9 |
![]() Join Date: Nov 2007 Location: Rotherham
Posts: 451
Thanks: 16
Thanked 28 Times in 24 Posts
Rep Power: 10 | Never had a proble with compression or the length of time it took to create them. I am not happy backup compression has gone |
| |
| | #10 | |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | Quote:
@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. | |
| |
| | #11 |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | Updated version
|
| |
| Thanks to matt40k from: | Rawns (09-11-2009)
|
| | #12 |
![]() Join Date: Apr 2007 Location: Leicester
Posts: 574
Thanks: 79
Thanked 13 Times in 12 Posts
Rep Power: 9 | Can't open the zips, both files are corrupt. |
| |
| | #13 |
![]() Join Date: Feb 2009
Posts: 42
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 5 | |
| |
| | #14 |
![]() Join Date: Jun 2008
Posts: 1,682
Thanks: 119
Thanked 175 Times in 143 Posts
Rep Power: 36 | Works ok here??? |
| |
| | #15 |
![]() Join Date: Feb 2009
Posts: 42
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 5 | Is it geographical? |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Migrate SIMS database to SQL 2008 | speckytecky | MIS Systems | 8 | 10-10-2009 09:43 AM |
| SIMS SQL 2008 migration | matt40k | MIS Systems | 0 | 08-08-2009 12:08 AM |
| SIMS 2008 May Re-Release - 21/05/08 | tech-man | MIS Systems | 47 | 09-06-2008 08:58 AM |
| SIMS Backups with SQL 2005 | WithoutMotive | MIS Systems | 5 | 17-01-2008 10:55 AM |
| Error Doing Tidy Backups in Sims.Net | tech_guy | MIS Systems | 0 | 07-01-2008 02:58 PM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
| |







