SAP HANA 2.0 SP02 is supported by the current versions of the script and has been tested, however, it only works in the case where there is a single tenant database, i.e. the SYSTEM database plus a single HANA instance database. If you have more than one tenant database as part of that instance, snapshot backups are not supported by SAP.
The script automatically detects HANA version 2.0 SP01 and higher and makes the correct adjustments to connect to the SYSTEMDB and to include the "FOR FULL SYSTEM" string as part of the snapshot command. This instructs HANA to snap not just the SYSTEM database but the tenant database as well:https://help.sap.com/viewer/4fe29514fd5 ... 5a4a2.html
The version detection is performed automatically so that systems with a mix of both 1.2 and 2.0 will still "just work". If you decide to use keystore based authentication, be sure to read the comments in the script carefully as you must explicitly specify the user is for the SYSTEMDB and also use a different port number. There is an example command in the comments.
Much thanks to the users who have tested these new versions of the scripts and helped me to flush out various bugs. I believe the scripts is working very well at this point, but feel free to report any issues and I'm happy to pursue them. I just squashed several more bugs last week due to user reports. Github always holds the most current, tested version.