How can we help you today? How can we help you today?
MasterCephus
I have done that. I have version: SQL Backup version: 5.4.0.55 Service Application Version: 5.4.0.55 I had manually upgrade to version 5.4 and then when it started it told me my server components needed to be upgraded so I did. / comments
I have done that. I have version: SQL Backup version: 5.4.0.55 Service Application Version: 5.4.0.55 I had manually upgrade to version 5.4 and then when it started it told me my server components ...
0 votes
sorry for not responding. Here is the situation now... The same script is being used from above, but only the network files are being deleted like they should...I looked in the help file and here is what the help said about fileoptions: Specifies whether old backup files are to be deleted or overwritten in the primary backup folder and any COPYTO folders. Specify the sum of the values that correspond to the options you require: 1 Delete old backup files in the secondary backup folders (specified using COPYTO) if they are older than the number of days or hours specified in ERASEFILES, ERASEFILES_ATSTART, or ERASEFILES_REMOTE. 2 Delete old backup files in the primary backup folder (specified using DISK) if they are older than the number of days or hours specified in ERASEFILES, ERASEFILES_ATSTART, or ERASEFILES_REMOTE unless they have the ARCHIVE flag set. 4 Overwrite existing files in the COPYTO folder. Valid values are 1 to 7. If you specify option 1 or 2 you must also set the age of the files to delete using ERASEFILES, ERASEFILES_ATSTART, or ERASEFILES_REMOTE. For example, to delete old backup files in the COPYTO folder that are older than 5 days: BACKUP DATABASE... WITH COPYTO = ... , ERASEFILES = 5, FILEOPTIONS = 1 To overwrite any existing files in the COPYTO folder and also delete old backup files in the COPYTO folder that are older than 5 days (values 1 + 4): BACKUP DATABASE... WITH COPYTO = ... , ERASEFILES = 5, FILEOPTIONS = 5 So reading from that, my FILEOPTIONS flag needs to be set to 3 if I want to delete files at BOTH locations that are older than the specified ERASEFILES flag... is that right? / comments
sorry for not responding. Here is the situation now... The same script is being used from above, but only the network files are being deleted like they should...I looked in the help file and here i...
0 votes
Sorry to bring this back up, but our SQL server just slowed to a huge crawl late Friday afternoon. After investigating, I noticed that I had about 7 days worth of backups on the local and network share. The FILEOPTIONS = 1 did not do anything. Now when I try to edit the backup job in SQL Backup, I get "The GUI does not support editing the command you selected" I was able to edit it before I changed the script in SSMS/EM. Now I am unable to do so. Any ideas? I really don't want to have to manually delete backups that are older than my specified timeframe because I will forget to do it and I will get issues like I did Friday. Here is my script: DECLARE @exitcode int DECLARE @sqlerrorcode int EXECUTE master..sqlbackup N'-SQL "BACKUP DATABASES [LIST OF DBS] TO DISK = ''D:\MSSQL10.MSSQLSERVER\MSSQL\Backup\<TYPE>\<DATETIME mm_dd_yyyy>\<AUTO>.sqb'' WITH COMPRESSION = 2, COPYTO = ''\\homebackup\FULL'', ERASEFILES_ATSTART = 3, FILEOPTIONS = 1, INIT, MAILTO = ''EMAIL ADDRESS'', THREADCOUNT = 4, VERIFY"', @exitcode OUT, @sqlerrorcode OUT IF (@exitcode >= 500) OR (@sqlerrorcode <> 0) BEGIN RAISERROR ('SQL Backup failed with exit code: %d SQL error code: %d', 16, 1, @exitcode, @sqlerrorcode) END / comments
Sorry to bring this back up, but our SQL server just slowed to a huge crawl late Friday afternoon. After investigating, I noticed that I had about 7 days worth of backups on the local and network ...
0 votes
cool! So just so I am totally clear, when I add the "FILEOPTIONS = 1" to the script, it will then delete the local and network copy of the backup. Is that correct? / comments
cool! So just so I am totally clear, when I add the "FILEOPTIONS = 1" to the script, it will then delete the local and network copy of the backup. Is that correct?
0 votes