Hello Günter,
use the pyton script belo with the sapdb.dbm interface and call it with
x_python -d <SID> -u CONTROL,CONTROL
Kind regards,
Burkhard
#!/usr/bin/env python
import sys
import string
import optlib
import sapdb.dbm
import os
def _options ():
return [
('n', 'host' , ':', 'localhost' , 'specifies servernode'),
('d', 'dbname' , ':', 'SDB' , 'specifies the database name'),
('u', 'userpwd' , ':', 'DBM,DBM' , 'specifies user and password'),
]
def main (options, args):
session = sapdb.dbm.DBM (options.host, options.dbname, '', options.userpwd)
result = session.cmd('backup_start NETAPP DATA')
os.system('ssh sapfiler snap create dbvol $SNAPSHOT')
result = session.cmd('backup_finish NETAPP ExternalBackupID $SNAPSHOT')
if __name__ == "__main__":
optlib.optMain2 (main, _options ())