F5 BigIP .ucs backup history

Hello

We have configured CatTools to TFTP a copy of our F5 config backup files nightly, however it overwrites the previous file so we have no way of reverting to an older version if needed. Is there a way to make the files save separately with different names? Here is the script we run on CatTools:

%ctUM: Timeout 90
save /sys ucs /var/tmp/cattools_bkp.ucs
quit
cd /var/tmp
tftp 10.10.10.10
mode binary
put cattools_bkp.ucs /BigIP/sea1lb2.ucs
quit
rm cattools_bkp.ucs
%ctUM: Timeout 0

The files are quite big so we wouldn't want them saving new versions indefinitely, but perhaps on rotation weekly/monthly.

Any ideas on how we can achieve this?

Thanks

Amy

Parents
  • Here's the solution we used in case anyone has the same issue:

    %ctUM: Timeout 90
    save /sys ucs /var/tmp/cattools_bkp.ucs
    quit
    cd /var/tmp
    mv cattools_bkp.ucs sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    tftp 172.19.2.198 -m binary -c put sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs /BigIP/sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    rm sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    %ctUM: Timeout 0

Reply
  • Here's the solution we used in case anyone has the same issue:

    %ctUM: Timeout 90
    save /sys ucs /var/tmp/cattools_bkp.ucs
    quit
    cd /var/tmp
    mv cattools_bkp.ucs sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    tftp 172.19.2.198 -m binary -c put sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs /BigIP/sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    rm sea1lb2_cattools_bkp-`date +'%Y-%m-%d_%H%Z'`.ucs
    %ctUM: Timeout 0

Children
No Data