[Linux] How to do a CLI backup/restore of the gateway

From the gateway screen:

Version 7.6.4 (b2013112117)
Java Version Oracle Corporation 1.7.0_51

So it is Oracle Java.

The gateway itself is working properly just the command line backup.