# save\_database

Save current database to the specified idb file idbname - name of the idb file. if empty, the current idb file will be used. flags - DBFL\_... bits or 0 see also [set\_database\_flag](https://docs.hex-rays.com/9.0/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1738)(), [clr\_database\_flag](https://docs.hex-rays.com/9.0/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1739)()

success save\_database(string idbname, long flags);

\#define DBFL\_KILL 0x01 // delete unpacked database #define DBFL\_COMP 0x02 // collect garbage #define DBFL\_BAK 0x04 // create backup file (if !DBFL\_KILL) #define DBFL\_TEMP 0x08 // temporary database
