1>>> import pyodbc
2>>> connection = pyodbc.connect(driver='{SQL Server Native Client 11.0}',
3 server='InstanceName', database='master',
4 trusted_connection='yes', autocommit=True)
5>>> backup = "BACKUP DATABASE [AdventureWorks] TO DISK = N'AdventureWorks.bak'"
6>>> cursor = connection.cursor().execute(backup)
7>>> connection.close()
8