Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log Shipping question

Status
Not open for further replies.

djj55

Programmer
Feb 6, 2006
1,761
US
Hello, SQL Server 2008R2
To continue the log shipping questions...
I would like to change the retention of log files. When we had little space we set it to 24 hr. Now we have room I would like to change the value.

Do I need to recreate the log shipping which I do using the wizard or is there a way to change a job? If so which job?

Thank you,


djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
 
Found one solution.
Code:
-- On primary
select * 
from msdb..log_shipping_primary_databases

UPDATE msdb..log_shipping_primary_databases
SET backup_retention_period = 2880;

-- On secondary
select * from msdb..log_shipping_secondary

UPDATE msdb..log_shipping_secondary
SET file_retention_period = 2880

djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top