Option | Description |
Complete Data Backup | A data backup includes all the data structures that are required to recover the database. |
Differential Data Backup | Differential backups store all the data changed since the last full data backup. |
Incremental Data Backup |
-
SAP HANA studio
HANA studio - 右键SID - Backup and Recovery - Back Up system 备份完整数据库或者打开Open Backup Console选择备份类型
这里的备份文件命名自动生成,如果是同样的备份路径,上一次备份将会被覆盖
-
SAP HANA cockpit
从studio进入或者打开链接
https://eccqas:4300/sap/hana/admin/cockpit/
http://eccqas:8000/sap/hana/admin/cockpit/
SAP HANA Backup - Create Backup创建一个backup马上备份
或者创建一个schedule周期调度,注意Backup Prefix,调度名字,周期
123 | #su - sidadm hdbsql \c -i 00 -n eccqas:30015 -u system -p Bm2015 ## |
12345678910 | #!/bin/sh #/* Backup script */ source $HOME/.bashrc date = "$(date +" %Y-%m-%d ")" time = "$(date +" %Y-%m-%d %H:%M:%S ")" backup= "backup data using file ('$date')" echo "daily backup :" $ time "Start" >> $DIR_INSTANCE /backup .log $DIR_EXECUTABLE /hdbsql -U USER4BACKUP -x $backup time = "$(date +" %Y-%m-%d %H:%M:%S ")" echo "daily backup :" $ time "End" >> $DIR_INSTANCE /backup .log |
12345678910 | #!/bin/sh #/* Complete Backup script_completebackup.sh*/ source $HOME/.bashrc date = "$(date +" %Y-%m-%d ")" time = "$(date +" %Y-%m-%d %H:%M:%S ")" backup= "backup data using file ('$date.complete')" echo "daily backup :" $ time "Start" >> $DIR_INSTANCE /backup .log $DIR_EXECUTABLE /hdbsql -U USER4BACKUP -x $backup time = "$(date +" %Y-%m-%d %H:%M:%S ")" echo "daily backup :" $ time "End" >> $DIR_INSTANCE /backup .log |
12345678910 | #!/bin/sh #/* Incremental Backup script_incrementbackup.sh */ source $HOME/.bashrc date = "$(date +" %Y-%m-%d ")" time = "$(date +" %Y-%m-%d %H:%M:%S ")" backup= "backup data INCREMENTAL using file ('$date')" echo "daily backup :" $ time "Start" >> $DIR_INSTANCE /backup .log $DIR_EXECUTABLE /hdbsql -U USER4BACKUP -x $backup time = "$(date +" %Y-%m-%d %H:%M:%S ")" echo "daily backup :" $ time "End" >> $DIR_INSTANCE /backup .log |