这可能是由于Barman配置文件中缺少对应的全备份计划项导致的。确保在Barman的配置文件(/etc/barman.conf)中,已经为全备份任务使用了名为“full”的计划项:
[postgres] barman_backup_schedule = full
如果该计划项已存在,请检查计划项是否格式正确。例如,对于每周执行全备份,计划项应如下所示:
barman_backup_schedule = FULL 7D
最后,确保您已经在此计划项中声明了要备份的PostgreSQL实例名称,例如:
[therealdb] description = A sample database host = localhost port = 5432 user = postgres backup_method = rsync ssh_command = ssh postgresql conninfo = dbname=the_real_db barman_backup_options = exclusive_backup barman_backup_schedule = FULL 7D therealdb # Add the instance here
确保完成以上步骤后再次尝试备份,Barman全备份就应该能够顺利触发。