[英]SQL Daily, weekly, monthly backup
I have daily backups set up for all databases. 我为所有数据库设置了每日备份。 The servers tend to get full of backups after a while and I have to go through and periodically clean it up.
一段时间后,服务器往往会充满备份,我必须仔细检查并定期清理它。 I would like to retain the daily backups for 30 days, then retain one backup weekly for 6 months, and then retain one backup monthly for 12 months.
我想保留30天的每日备份,然后每周保留6个月的备份,然后每月保留12个月的备份。 How do i set this up in SQL or outside of SQL?
如何在SQL或SQL外部进行设置? The retention needs will also vary between databases.
不同数据库之间的保留需求也将有所不同。 Thanks in advance.
提前致谢。
Question: The retention needs will also vary between databases. 问题:数据库之间的保留需求也将有所不同。 You can do this in the fullbackup step.
您可以在完整备份步骤中执行此操作。
Good luck 祝好运
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.