Automysqlbackup 会将备份保存多长时间

Automysqlbackup 会将备份保存多长时间

我想知道,如果您使用默认配置设置 automysqlbackup,它会保留旧备份多长时间?

total 12
drwxr-xr-x 4 root root 4096 2010-01-27 17:20 daily
drwxr-xr-x 2 root root 4096 2010-01-27 17:20 monthly
drwxr-xr-x 4 root root 4096 2010-01-27 17:20 weekly
root@server1:~#

谢谢

答案1

您绝对不应该在未配置的情况下使用 AutoMySQLBackup 脚本。

旋转设置在配置文件

# Set rotation of daily backups. VALUE*24hours
# If you want to keep only today's backups, you could choose 1, 
# i.e. everything older than 24hours will be removed.
#CONFIG_rotation_daily=6

# Set rotation for weekly backups. VALUE*24hours
#CONFIG_rotation_weekly=35

# Set rotation for monthly backups. VALUE*24hours
#CONFIG_rotation_monthly=150

相关内容