bggo / Zmbkpose

The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.
http://wiki.zimbra.com/wiki/HOT_Backup_and_HOT_Restore
GNU General Public License v3.0
79 stars 55 forks source link

"zmbkpose -d" Do not exclude old full backups. #31

Closed rodrigodelmonte closed 11 years ago

rodrigodelmonte commented 11 years ago

In a cron job I configure to zmbkpose exclude backups older than 15 days. But I noticed that just the incremental backups were excluded and the full backups still there. This behaviour is normal?

liandros commented 11 years ago

Hi. I don't understand the question mainly because the word "exclude". The -d option remove old backups cycles trying to avoid a disk full. A backup cycle is a full backup and subsequent incrementals. The entire cycle must be earlier than the date "now - argumentto-d" to be removed. Then if you have : Day | Backup 1 FULL 2 INC 3 INC 4 INC 5 FULL 6 INC 7 FULL 8 FULL Then you on day 9 execute zmbkpose with : -d 2d => backups of days 1,2,3,4,5,6 will be eliminated. because they are earlier to day 7 (9 - 2 = 7) -d 4d => backups of days 1,2,3,4 will be eliminated. because they are earlier to day 5 (9 - 4 = 5) -d 5d => no file will be deleted because it would break the cycle between days 1 to 4 If zmbkpose not work this way, then it is a bug. Try to test using "-s" argument for simulation, and not erase.