endofzero/Minecraft-Sheller — Issue #40: Backups not clearing
Author: Kdehner
Created: 2012-01-27 03:23:43+00:00
State: open

My minecraft.sh backup full is not clearing out old backups when run every night. Its backing up properly and i am getting full backups in my folder but non of the incriminates past 2 days are being removed and none of the full backups past 5 days are being removed. i have posted my Cron Jobs and the part of my .sh that has the backups.

Cron Job
#3,18,33,48 * * * * /home/lostcraft/lc-release/minecraft.sh sync >/dev/null 2>&1
5 1,5,7,9,11,13,15,17,19.21,23 * * * /home/lostcraft/lc-release/minecraft.sh backup
5 3 * * * /home/lostcraft/lc-release/minecraft.sh backup full

Minecraft.sh
# Backups
BKUP_PATH=/home/************/minecraft_backups
BKUP_DAYS_INCR=2
BKUP_DAYS_FULL=5

ALT_BACKUP=1
ALT_PATH=$MC_PATH/plugins

Also has full support been added for the plugins backup?