Difference between revisions of "F5 backup"
Jump to navigation
Jump to search
| Line 13: | Line 13: | ||
tmsh load /sys ucs <path/to/UCS> no-license | 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 | ||
| + | ``` | ||
| + | or | ||
| + | util.bash.exec_cmd | ||
Revision as of 21:34, 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
or util.bash.exec_cmd