Need help restoring database backup

Hi Guys ,

I created a backup running the below command ,

cd frappe-bench
bench --site site2.local backup --with-files

now I am left with three files , as shown in the below snap

now which is the command I have to use to restore the backup , I read the documentation but I am not clear with the restoring part , could anyone kindly let me know on this ?

Thanks in advance

Hi,
Refer this one:-

Thanks for the reply @shraddha , I already read that thread and infact I got the above commands from that thread , but it lacks a proper documentation about restoring the files .

Any help ?

use bench --site site_name restore sql_file

2 Likes

Many thanks for the reply @neilLasrado . Will the above command restore all the files and database ?

Thanks in advance

@ragav No it restores the database (the sql file is the database) you can copy paste the files into the public and private directories.

1 Like

Thanks a lot for the help @neilLasrado . I understood

1 Like