Hello,
So I have setup production env and created one site in production. Now i have to restore my all development on production. So what steps i should follow and How i have to take complete backup?
Please guide.
Hello,
So I have setup production env and created one site in production. Now i have to restore my all development on production. So what steps i should follow and How i have to take complete backup?
Please guide.
I have some question regarding with below command:
bench --site backup --with-files
What is command to restore it?
does it take backup of db and files?
Well - this worked for me earlier today:
bench --site site1.local backup --with-files
#creates four files:
Backup Summary for site1.local at 2024-07-30 15:19:59.998974
Config : ./site1.local/private/backups/20240730_151958-site1_local-site_config_backup.json 185.0B
Database: ./site1.local/private/backups/20240730_151958-site1_local-database.sql.gz 1.8MiB
Public : ./site1.local/private/backups/20240730_151958-site1_local-files.tar 330.0KiB
Private : ./site1.local/private/backups/20240730_151958-site1_local-private-files.tar 10.0KiB
#and then this command:
bench --site [sitename] restore [path sql database with file name] --with-private-files [file location and filename] --with-public-files [file location and filename]
#which in my case translates as:
bench --site site1.local restore /home/bower/frappe-bench/sites/site1.local/private/backups/20240730_151958-site1_local-database.sql.gz --with-private-files /home/bower/frappe-bench/sites/site1.local/private/backups/20240730_151958-site1_local-private-files.tar --with-public-files /home/bower/frappe-bench/sites/site1.local/private/backups/20240730_151958-site1_local-files.tar
#most likely will ask for MySQL (MariaDB) password …
#and then:
bench --site site1.local migrate