Difference between revisions of "F5 backup"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
sftp foo@example.com <<< "put /var/local/ucs/$file" | sftp foo@example.com <<< "put /var/local/ucs/$file" | ||
tmsh delete sys ucs $file | tmsh delete sys ucs $file | ||
+ | ``` | ||
+ | |||
+ | no private keys | ||
+ | ``` | ||
+ | tmsh save /sys ucs $file passphrase changeme no-private-key | ||
``` | ``` | ||
or | or | ||
util.bash.exec_cmd | util.bash.exec_cmd |
Revision as of 21:35, 28 August 2023
https://github.com/sebastien6/f5-backup
https://support.f5.com/csp/article/K13132
https://my.f5.com/manage/s/article/K13132
tmsh save sys ucs $(echo $HOSTNAME | cut -d'.' -f1)-$(date +%H%M-%m%d%y)
restore
tmsh load /sys ucs <path/to/UCS> no-license
simple script
file=$HOSTNAME.$(date +%Y-%m-%dT%H-%M-%S) tmsh save /sys ucs $file passphrase changeme tmsh list /sys ucs sftp foo@example.com <<< "put /var/local/ucs/$file" tmsh delete sys ucs $file
no private keys
tmsh save /sys ucs $file passphrase changeme no-private-key
or util.bash.exec_cmd