The script should be on the backup server.
Start by configuring the account that's going to hold the backups (the account on the ftp server.
Inside the user's home directory, create a directory named backup.
Then in the systems backup configuration, tell the system backup to write to the backup directory.
Create a cron job on the server holding the backup, to do the following as tje same username:
rm -Rf backup-old
mv backup backup-old
touch backup-old
Then run this script a minute before the backup starts on the server you're backing up.
After the second cycle your user should have two subdirectories:
/backup
and
/backup-old
and backup should always hold the most current backup and backup-old should always hold the older backup. Each backup will be in a date directory so you'll know what day it was made.
We use a method similar to this to manage backups for lots of backups on several backup servers. We'd love to have the code written into sysbk to do it for us so we don't have to write any scripts to run on the backup machine, but we'd like to see it done on the DA level or on the sysbk level, and not have to worry about a custom script ourselves.
Perhaps we'll donate this to the community at some point.
Jeff