Contact Us

support@onapp.com

U.S: (+1) 888-876-8666

UK: +44 (0) 203-318-5364

Remove Zombie Backup files/images

Follow

Comments

8 comments

  • Avatar
    Matt Dayley

    I combined the scripts and adjusted it to work with incremental backups too.

  • Avatar
    Matt Dayley

    Now deletes zombie mbrs.

  • Avatar
    Matt Dayley

    You can now run it as root on the CP.  It will now let you check for zombies anywhere you can reasonably think of.

  • Avatar
    Matt Dayley

    Added safeguards.  Will warn user and exit if ran on a non-CP server.

  • Avatar
    Matt Dayley

    Added -p option to check processes on backup servers.

  • Avatar
    Matt Dayley (Edited )

    v2.4

    Improved search performance

    Added size reporting option (Use -s flag) Logged in file /tmp/zbk_rmsize.txt

    Refer to ./removed_backups.txt for removal logging.

    Added support for unlisted backup servers

  • Avatar
    Matt Dayley

    Users were reporting error:  zbk.sh: line 609: syntax error near unexpected token `<'
    zbk.sh: line 609: ` done < <(/usr/bin/mysql -P $MYSQLPORT -h $MYSQLHOST $MYSQLDB -p$MYSQLPW -Bse "select parent_id,identifier from transactions where status='running' and (action='take_backup' or action='take_incremental_backup');")'

    I fixed this by adding safeguards to prevent users from using anything but bash.  People were using 'sh' which does not allow bash-style process susbstitution.

  • Avatar
    Matt Dayley

    Added colors to console output.

Please sign in to leave a comment.