F5 iApp Automated Backup
Problem this snippet solves:
This is now available on GitHub!
Please look on GitHub for the latest version, and submit any bugs or questions as an "Issue" on GitHub:
(Note: DevCentral admin upd...
Updated Feb 15, 2022
Version 2.0Daniel_Tavernie
Cirrostratus
Joined December 19, 2012
Daniel_Tavernie
Nov 15, 2018Cirrostratus
v3.1.8 RELEASED
These are the fixes/enhancements (I released v3.1.5 and v3.1.6 recently, so they are included):
v3.1.5 - 20181112
- Updated KNOWN ISSUES section (below)
- Fixed SCF passphase issue (v11 "tmsh save sys config file NAME" works and applies no passphase ("no-passphase" flag does not exist); v12+ requires use of "no-passphrase" or "passphrase PHRASE"). (github Issue 18)
- Reordered filename_format list; default remains ${host}_%Y%m%d_%H%M%S
- Tested on 11.6.3.3, 12.1.3.7, and 13.1.1.2
- Fixed lots of issues with SCF files for SFTP/SCP, FTP, and SMB/CIFS (mainly, tar files were not being copied and were not being cleaned up locally). (github Issue 18)
- Added logging clarification that when using SCF archives a .tar file is also generated and saved/uploaded.
- Added debug logging for the SMB/CIFS script.
- Now including on github an expanded form of the upload scripts for better understanding (see "; etc.).
- Now supporting many special characters for passwords (without manually escaping with backslashes). (github Issue 3 and 16)
- SMB/CIFS does NOT support comma, single-quote, and double-quote. I successfully tested this exact password to Windows Server 2012: `~!@$%^&*()aB1-_=+[{]}|;:<.>/?
- FTP should support all characters (based on limited testing). I successfully tested this exact password to a Linux FTP server: `~!@$%^&*()aB1-_=+[{]}|;:,"<.>'/?
- Scripts for SMB/CIFS and FTP will again be deleted after each backup. (This was in place as of v3.1.6 but was turned off for debugging in v3.1.7 and was not put back.)
- Fixed comment in SMB/CIFS script which was breaking everything due hash escape and a variable reference--I must not have actually tested after I added the comment :(