Anasayfa / Database / Firebird / Python Firebird Backup Restore Database

Python Firebird Backup Restore Database

import firebirdsql.fbcore
from firebirdsql import services

def restore_database(fbk_file: str, fdb_file: str):
    con = services.connect(user='SYSDBA', password='masterkey')
    con.restore_database(fbk_file, fdb_file,
                         pageSize=16384,
                         replace=True
                         )


def backup_database(fdb_file: str, fbk_file: str):
    con = services.connect(user='SYSDBA', password='masterkey')
    con.backup_database(fdb_file, fbk_file)

 

Hakkında ibrahim

İlgili Makaleler

python locale.Error: unsupported locale setting locale.setlocale(locale.LC_ALL, ‘Turkish_Turkey.1254’)

if os.name == 'nt': locale.setlocale(locale.LC_ALL, 'Turkish_Turkey.1254') yeni windows updateleri ile artık Türkiye (‘Turkish_Türkiye’, ‘1254’)

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir