cPanel Backup Via PHP script and Cron Job - Not Deleting Backup off Server


Jan 22, 2010
I'm using the script below to remotely backup some user accounts on my server by running a Cron Job.

The script works great however, once the backup file is sent via FTP it remains in the home directory of the user. This is going to fill up eventually and cause me issues.

I'm using this same solution on another server running: cPanel 11.24.5-S38506 - WHM 11.24.2 - X 3.9 - and no backup file remains on the server.

Any ideas on how I can correct this on my server running:
cPanel 11.25.0-R42404 - WHM 11.25.0 - X 3.9

Thanks for the help.