Click here to Skip to main content
15,883,745 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am making a library management system in qt c++ in it i want to make a backup of database when user clicks the generate backup but i have no idea about how do i do it

What I have tried:

void liberarian::on_generatebackup_clicked()
{
    Generator bu;
    bu.setModal(true);
    bu.exec();
    /* do something here to make a backup of the databse*/
}
Posted
Updated 20-Apr-18 2:33am

1 solution

What about copying the database file?
 
Share this answer
 
Comments
kashif mehmood 22-Apr-18 7:26am    
I Want to do it programatically so that when user pushes the button a backup is automically created in the desired location

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900