Updated on January 7, 2014 by Rahul K.sql
Databasesapp
SAP HANA is an in-memory data platform that is deployable as an on-premise appliance, or in the cloud. It is a revolutionary platform that’s best suited for performing real-time analytics, and developing and deploying real-time applications. Click here to know more about SAP HANA.ide
Use following steps to backup SAP HANA database using command line. Use sql command line backup are recommended in batch mode onlyui
First we need to connect to SAP HANA server using Linux clients (eg: putty) with root user.spa
Now we need to switch to SAP HANA admin user using following command..net
# su - hdbadm
Use following command to open HDB sql prompt .orm
$ hanadb1:/usr/sap/HDB/HDB00> hdbsql
Now connect to SAP HANA database instance using following command. For below command you required sap hana server name and database instanace number and password for SYSTEM account.server
hdbsql=> connect -n <server name> -i <instance number> -u <user> -p <password> [Use Command Like Below] hdbsql=> connect -n hanadb1 -i 00 -u SYSTEM -p PASSWORDHERE // Connected to HDB@hanadb1:30015
After successfully connecting to SAP HANA database instance, start backup using below command.rem
hdbsql HDB=> BACKUP DATA USING FILE ('/backup/HDB/data/BACKUP_FULL_2014/SAPHANA')
On successful backup you will get results like below.get
Output: 0 rows affected (overall time 672.508245 sec; server time 672.505331 sec)
All backup files will be created in /backup/HDB/data/BACKUP_FULL_2014/ directory.
Reference: http://help.sap.com/hana/SAP_HANA_Administration_Guide_en.pdf