July 29, 2019 at 6:54 am
Hi
I take backup from SQL server 2014 the backup size was 250 MB
and I restored in SQL server 2016 when I take the backup the size was increased 4.5 GB
and also I was tested in another server SQL server 2014 restored and backup it was 250 MB only.
July 29, 2019 at 9:47 am
Is backup compression enabled on the SQL 2016 server?
Thomas Rushton
blog: https://thelonedba.wordpress.com
July 29, 2019 at 9:50 am
couple of ideas:
July 29, 2019 at 12:15 pm
Did the recovery model get changed and the logs are now huge?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
July 29, 2019 at 12:28 pm
Hi Andrey,
Thank You
Data File Size : 4360 MB
Log File Size : 3398 MB
when I checked Both SQL server 2014 and 2016 Data File and Log file size was same.
the below script to run the backup file in 2014 and 2016 bur backup file size was different
SQL server 2014 : 250 MB
SQL server 2016: 4.25 GB
BACKUP DATABASE [DBName]
TO DISK = N'E:\Old\DBName.bak' WITH NOFORMAT
, NOINIT
, NAME = N'DBName-Full Database Backup'
, SKIP
, NOREWIND
, NOUNLOAD
, STATS = 10
GO
July 29, 2019 at 12:38 pm
add ", COMPRESSION" and run backups again , compare backup sizes
example:
BACKUP DATABASE [DBName]
TO DISK = N'E:\Old\DBName.bak' WITH NOFORMAT
, NOINIT
, NAME = N'DBName-Full Database Backup'
, SKIP
, NOREWIND
, NOUNLOAD
, STATS = 10
, compression
July 29, 2019 at 12:38 pm
No I am not change recovery Model
July 29, 2019 at 12:47 pm
Hi Andrey
Thank you,
BACKUP DATABASE [DBName]
TO DISK = N'E:\Old\DBName.bak' WITH NOFORMAT
, NOINIT
, NAME = N'DBName-Full Database Backup'
, SKIP
, NOREWIND
, NOUNLOAD
, STATS = 10
, compression
I run the above query in SQL Server 2016 the backup size is 250 MB
But in SQL server 2014 I am not use compression
Thank You
July 29, 2019 at 12:52 pm
tamil.selvanmca wrote:But in SQL server 2014 I am not use compression
I bet it's configured there by default
run the query on both servers :
SELECT *
FROM sys.configurations
WHERE name = 'backup compression default' ;
GO
Nice catch!
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
July 29, 2019 at 1:11 pm
Hi Andrey,
SQL server 2014 Value = 1 and Value_in_use = 1
SQL server 2016 Value = 0 and Value_in_use = 0
Thank You
July 29, 2019 at 1:14 pm
Hi Andrey,
SQL server 2014 Value = 1 and Value_in_use = 1
SQL server 2016 Value = 0 and Value_in_use = 0
Thank You
as expected
read this :
https://www.mssqltips.com/sqlservertip/1964/sql-server-2008-backup-compression/
July 30, 2019 at 6:20 am
Hi Andrey,
Thank You...
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply