jsyers
asked on
Trim ldf
I am doing FULL backups at 12:00 AM every night with the below script. From 6:00 AM until 10:59:59 PM everyday I am running the lower most script every fifteen minutes. Problems is that the database .ldf is growing and growing. How do I trim it down prior/or during the Full backup?
BACKUP DATABASE [AdminDB] TO DISK = N'\\clwfile03\system_backu ps$\CLWSQL PD01\Admin DB_FULL.Ba k' WITH NOFORMAT, INIT, NAME = N'AdminDB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
BACKUP LOG [AdminDB] TO DISK = N'\\clwfile03\system_backu ps$\CLWSQL PD01\Admin DB_Log.Trn ' WITH RETAINDAYS = 1, NOFORMAT, NOINIT,
NAME = N'Pods-Transaction Log Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
BACKUP DATABASE [AdminDB] TO DISK = N'\\clwfile03\system_backu
GO
BACKUP LOG [AdminDB] TO DISK = N'\\clwfile03\system_backu
NAME = N'Pods-Transaction Log Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe try increasing the time to 1HR as that is what I am using as well and have had no problems with it not truncating.