Backup script is ignoring maxtransfersize
Meeble
Posts: 3
This is the script I recently switched over to since this particular script has been failing a lot recently. Every time it errors out, it always retrys with the smaller maxtransfersize and succeeds. I want to make only this one have the smaller tranfers size, and so far its ignoring what i have down below. Am I missing something?
I have version 5.3.0.178
exec master..sqlbackup N'-SQL "BACKUP LOG [GMail] TO DISK = ''<AUTO>'' WITH NAME = ''<AUTO>'', DESCRIPTION = ''<AUTO>'', INIT, COMPRESSION = 2, MAXTRANSFERSIZE = 131072, COPYTO = ''\\~~~\E$\Backup\FBSQL102\GlobalMail'', MAXTRANSFERSIZE = 262144"', @exitcode OUTPUT, @sqlerrorcode OUTPUT
I have version 5.3.0.178
exec master..sqlbackup N'-SQL "BACKUP LOG [GMail] TO DISK = ''<AUTO>'' WITH NAME = ''<AUTO>'', DESCRIPTION = ''<AUTO>'', INIT, COMPRESSION = 2, MAXTRANSFERSIZE = 131072, COPYTO = ''\\~~~\E$\Backup\FBSQL102\GlobalMail'', MAXTRANSFERSIZE = 262144"', @exitcode OUTPUT, @sqlerrorcode OUTPUT
SQL Backup log file 5.3.0.178 -SQL "BACKUP LOG [Gmail] TO DISK = '<AUTO>' WITH NAME = '<AUTO>', DESCRIPTION = '<AUTO>', INIT, COMPRESSION = 2, MAXTRANSFERSIZE = 131072, COPYTO = '\\~~~\E$\Backup\FBSQL102\Gmail', MAXTRANSFERSIZE = 262144 " ----------------------------- ERRORS AND WARNINGS ----------------------------- 9/25/2008 8:00:00 AM: Backing up Gmail (transaction log) to: 9/25/2008 8:00:00 AM: K:\Backup\FBSQL102\Gmail\Gmail_LOG_20080925_080000.sqb 9/25/2008 8:00:01 AM: BACKUP LOG [Gmail] TO VIRTUAL_DEVICE = 'SQLBACKUP_B42A5D5D-981D-4F4A-8152-2B9178D3BF4A' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 262144, NAME = N'Database (Gmail), 9/25/2008 8:00:00 AM', DESCRIPTION = N'Backup on 9/25/2008 8:00:00 AM Server: FBSQL102 Database: Gmail' 9/25/2008 8:00:31 AM: VDI error 1010: Failed to get the configuration from the server because the timeout interval has elapsed. Check that the SQL Server instance is running and that you have the SQL Server System Administrator server role; or try increasing the value of the VDITimeout registry setting in HKEY_LOCAL_MACHINE\SOFTWARE\Red Gate\SQL Backup\BackupSettingsGlobal\[InstanceName] 9/25/2008 8:01:11 AM: SQL error 3013: BACKUP LOG is terminating abnormally. 9/25/2008 8:01:11 AM: SQL error 3201: Cannot open backup device 'SQLBACKUP_B42A5D5D-981D-4F4A-8152-2B9178D3BF4A'. Operating system error 0x80070002(The system cannot find the file specified.). 9/25/2008 8:01:11 AM: 9/25/2008 8:01:11 AM: Memory profile 9/25/2008 8:01:11 AM: Type Maximum Minimum Average Blk count Total 9/25/2008 8:01:11 AM: ---------------- ----------- ----------- ----------- ----------- ----------- 9/25/2008 8:01:11 AM: Commit 15549333504 4096 9404433 2965 27884146688 9/25/2008 8:01:11 AM: Reserve 7734231040 4096 15382733 509 7829811200 9/25/2008 8:01:11 AM: Free 6846142611456 4096 21109346985 415 8760378998784 9/25/2008 8:01:11 AM: Private 15549333504 4096 12251872 2903 35567185920 9/25/2008 8:01:11 AM: Mapped 4190208 4096 198144 64 12681216 9/25/2008 8:01:11 AM: Image 33226752 4096 264478 507 134090752 9/25/2008 8:01:11 AM: 9/25/2008 8:04:26 AM: Copied K:\Backup\FBSQL102\Gmail\Gmail_LOG_20080925_080000.sqb to \\~~~\E$\Backup\FBSQL102\Gmail\Gmail_LOG_20080925_080000.sqb. ----------------------- PROCESSES COMPLETED SUCCESSFULLY -------------------- 9/25/2008 8:01:11 AM: Warning 300: Backup failed. Retry attempt: 1 9/25/2008 8:01:14 AM: BACKUP LOG [Gmail] TO VIRTUAL_DEVICE = 'SQLBACKUP_863BED06-E69A-4003-9414-353C08277401' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 131072, NAME = N'Database (Gmail), 9/25/2008 8:00:00 AM', DESCRIPTION = N'Backup on 9/25/2008 8:00:00 AM Server: FBSQL102 Database: Gmail' 9/25/2008 8:03:38 AM: Backup data size : 273.875 MB 9/25/2008 8:03:38 AM: Compressed data size: 69.674 MB 9/25/2008 8:03:38 AM: Compression rate : 74.56% Processed 34784 pages for database 'Gmail', file 'Gmail_log' on file 1. BACKUP LOG successfully processed 34784 pages in 7.523 seconds (37.876 MB/sec).
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Depending on your notification mechanism, you could choose to ignore SQL Backup exit codes with a value less than 500.
Note that the SQL error code is an entirely different thing altogether. This is the last SQL Server error code returned by SQL Server, and is usually critical if it is a value other than 0.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8