SQL Backup size

vyanku
Member Posts: 791
I take the SQL database backup (full) it is near about 9 GB.
If I take native backup it is near about 1.5 GB.
I am using SQL 2005.Navision 5.0 SP1 .The database size in SQL is 13GB.
I had already truncate the log file.
How I can reduce the SQL backup size. :-k
If I take native backup it is near about 1.5 GB.
I am using SQL 2005.Navision 5.0 SP1 .The database size in SQL is 13GB.
I had already truncate the log file.
How I can reduce the SQL backup size. :-k
0
Answers
-
Why do you need to reduce the size?
The Navision backup only contains the data. It does not include key/index info or database/table structures. The SQL does incluse this. If your database is heavily indexed (a whole other discussion) then that could account for this difference.There are no bugs - only undocumented features.0 -
How about winzip or winrar.David Singleton0
-
Why do you not use a "pack program " like winzip, WinAce, WinRar etc ?There you can also split the backupfile to many archives...Do you make it right, it works too!0
-
winzip, winrar are ok. But why it shows such a large size of backup? while it is showing only 1.5 gb for Nav backup with application objects.
Is it any wrong in making backup?
In Native backup it shows errors of table locking thats why I suggest SQL backup to our client. But now our client shows us size issue ](*,)0 -
what for an backuptype you select? Full? Incl. your log file(s) :?:
How large are your log file(s) :?:Do you make it right, it works too!0 -
I am selecting full type of backup.
My .ndf file is 13GB
.ldf file is 234mb
.mdf file is 678mb0 -
First look at fragmentation in your database. Even If you have only one record on page in the database the entire page goes to backup (so say you have rec 100 bytes long, and due to massive fragmentation you have just a few records on single database page, yet the whole 8kb page have to go to backup file).
Optimising all tables and indexes and decreasing fragmentation will greatly reduce size of your SQL backup (and speed up your database), but even if database is perfectly optimised SQL backup file will be still much bigger that native backup - as bbrown said SQL backup ALWAYS contains everything, data, indexes, users, permission objects etc, while native contains table data only, or data and table definitions.
Regards,
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
vyanku wrote:I am selecting full type of backup.
My .ndf file is 13GB
.ldf file is 234mb
.mdf file is 678mb
](*,) ](*,) ](*,) ](*,) ](*,)
Looks like another Autoshrink. [-XDavid Singleton0 -
But autoshrink is false in properties of the database. :-k0
-
vyanku wrote:But autoshrink is false in properties of the database. :-k
AH ok sorry :oops: .
How often do you backup your log file to keep it so small?David Singleton0 -
the log could also be so small if the "Recovery Model" is Simple.
Is this so vyanku or did you shrink the log before or take you ever x minutes a log backup and in your database also not many transactions?Do you make it right, it works too!0 -
David Singleton wrote:vyanku wrote:But autoshrink is false in properties of the database. :-k
AH ok sorry :oops: .
How often do you backup your log file to keep it so small?
There could be a maintenance job that's shrinking the log.There are no bugs - only undocumented features.0 -
so why is the fbk smaller then the bak file.
The native backup utility has also a compres. algorithm to compress the datas. Also the fbk doesn't store any indexes.
It stores only the datas and objects (if selected). And the index information! The indexes will rebuild during restoring.
The 2005 hasn't this algorithm and the sql backup is only a "copy" of all datas, indexes and so on. thats the reason why the sql backup has the "same" size like the database self.
EDIT:
With 2008 there is a compression with the option "WITH COMPRESSION" that you can set.
Search here the msdn for "backup compression".
RegardsDo you make it right, it works too!0 -
a little "Trick" the get the backup files small on the HDD is:
go to the properties of the Folder where youre backupfiles should store (like\MyBackupfolder).
Press there "Advanced" Button and check the option to "Compress to save disk space" and "Folder is ready for archiving."
If you have a subfolder or subfolders behind your\MyBackupFolder you would be prompted for enabling also the subfolders.
Note: It's better to create one subfolder before enabling this archive!
now, when you store the Backup to\MyBackupfolder and take a look to the *.bak files you will see the following:
Filesize: 9GB (for example)
File size on Disk: 3 GB (for example).
<- this is used only for saving space on the disk
:!: :!: Never activate the compression on the folder / drive where windows runs. It's not the best for the systemperformance ;-)
RegardsDo you make it right, it works too!0 -
vyanku wrote:But why it shows such a large size of backup? while it is showing only 1.5 gb for Nav backup with application objects.
A NAV backup is the app table objects and the data in it. This does NOT include any indexes, only the data. The indexes are created when the database is restored, based on the index definition within the table objects. Because the NAV backup file does not contain the indexes themselves, its size is significantly smaller.
The fact that your 1.5GB NAV backup creates a 13 GB database is a pretty good indication that this database has massive amounts of data in indexes. You need to have a SQL Server expert come in and help you tune them.0 -
@vyanku:
Also you can read the Onleine Help. Go to Tools -> Backup -> HELP button and read there the Description and follow there also the links.
For more information about backups in NAV, see the Installation and System Management manual for either Native Backup or the SQL Backup Option. <- On Product CD / DVD
RegardsDo you make it right, it works too!0 -
bbrown wrote:David Singleton wrote:vyanku wrote:But autoshrink is false in properties of the database. :-k
AH ok sorry :oops: .
How often do you backup your log file to keep it so small?
There could be a maintenance job that's shrinking the log.That's what I meant. I was not implying that they had a person employed 24 hours a day manually creating log file backups. Mind you from some of the things I am seeing these days... :whistle:
David Singleton0 -
David Singleton wrote:bbrown wrote:
There could be a maintenance job that's shrinking the log.That's what I meant. I was not implying that they had a person employed 24 hours a day manually creating log file backups. Mind you from some of the things I am seeing these days... :whistle:
That's what I thought you meant. My response was more to the comment about "auto shrink" not being checked. I should have quoted that post instead. Sorry for the confusion. :oops:
I can understand your comment "...some of the things I am seeing..". I spend 15 years doing hardware and systems integration before my NAV days. I saw lots of things back then but I think I see even more today. Back then I could understand it a bit, as much of the technology was "bleeding-edge" and there weren't a lot of "experts" that truly understood it. But today much of this technology is mainstream and there are competent and knowldgeable resources. Much the same can be said about the real-world. But customers still continue to believe they can save money by not accepting (and paying for) the proper advice.There are no bugs - only undocumented features.0 -
[Topic moved from 'NAV/Navision' forum to 'SQL General' forum]David Singleton wrote:How about winzip or winrar.DenSter wrote:The fact that your 1.5GB NAV backup creates a 13 GB database is a pretty good indication that this database has massive amounts of data in indexes. You need to have a SQL Server expert come in and help you tune them.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
If the BAK size still is a problem - even after all the suggested optimizations - well, there are 3rd party tools to implement some kind of "Backup Compression" even with SQL Servre 2005; for example: http://www.quest.com/litespeed-for-sql-server/Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
The backup is NINE GIG that's less than most mobile phones have these days.
Seriously if your client has an issue in handling 9gig in this day and age, then you are going to have many more serious issues down the track to worry about.
Just get more local drive space and move on.
Believe me if you see this as a problem, I can only dread all the other mistakes that were made in this implementation.David Singleton0 -
I belive, that he doesn't have a problem with the size.
I think he will only know why the native backup has a other size then the sql backup.
But i agree, handling 9gig in this day should not be a problem.Do you make it right, it works too!0 -
garak wrote:I belive, that he doesn't have a problem with the size.
I think he will only know why the native backup has a other size then the sql backup.
But i agree, handling 9gig in this day should not be a problem.
I am maybe being to subtle then
The point is that if the OP had said something like:
"Hi I am brand new to Navision and want to start learning can some one tell me...." then I would agree, but in this case the poster only found this out when the customer told them. This is pretty basic Navision stuff, and is clearly covered in the certification exams that someone at the Partner would have to have passed for the company to become certified.
How do things get this far. Partners should not think of their clients as a school where they learn and get paid at the same time. Sorry but I just don't like this.
Vyanku, you should not be experimenting on your clients production system, you should be sending out your SQL experts to plan this with the client, so they have the answers.David Singleton0 -
David you know, in this respect, you have my full consent.Do you make it right, it works too!0
-
garak wrote:David you know, in this respect, you have my full consent.
Thanks, though I have probably unfairly to Vyanku taken this thread off topic.David Singleton0 -
Thaks Guys. I got my answer for why sql database backup size is more than nav backup size0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions