This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:faq:how_to_restore_system_from_a_backup_file [2015/05/15 03:54] – liuxl | en:faq:how_to_restore_system_from_a_backup_file [2015/05/28 09:39] (current) – liuxl | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | - install | + | ====== How to Restore System from a Backup File ====== |
| - | - upload | + | |
| - | - untar the file | + | ===== Install a Same Version Astercc ===== |
| - | - restore | + | |
| - | - restore folder: | + | For details:[[en: |
| - | - restore folder: | + | |
| - | - restore folder: | + | ===== Upload the Backup File to the New Server ===== |
| - | - restore folder: / | + | |
| + | For details:[[en: | ||
| + | |||
| + | |||
| + | ===== Untar the Backup File ===== | ||
| + | |||
| + | First,you should enter the directory of the backup files that download via " | ||
| + | < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Restore Database ===== | ||
| + | |||
| + | ==== Untar the Backup File of Database ==== | ||
| + | |||
| + | After untar the backup file,we will untar the archive of database,we just need to execute commands following: | ||
| + | < | ||
| + | If finished,you can find the database | ||
| + | |||
| + | |||
| + | ==== Import the Backup File of Database ==== | ||
| + | |||
| + | Import backup files into the database through commands following: | ||
| + | < | ||
| + | By the way," | ||
| + | < | ||
| + | |||
| + | At last,it prompts us to enter the secret of database.Under normal circumstances, | ||
| + | |||
| + | 1.In astercc.conf→[database],such as:dbname、username、password | ||
| + | < | ||
| + | |||
| + | 2.In astercc.conf→[statistics],for example:dbname、dbpassword | ||
| + | < | ||
| + | |||
| + | 3.At bottom of database.php,Under "class DATABASE_CONFIG | ||
| + | < | ||
| + | |||
| + | |||
| + | |||
| + | ===== Restore Folder ===== | ||
| + | |||
| + | Execute the following command one by one: | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | |||
| + | |||
| + | ===== Reload the Configure Files of System ===== | ||
| + | |||
| + | After finished operations above,we should reloading the configure of system next. We just find " | ||
| + | < | ||
| + | |||
| + | |||
| + | ===== Solutions for Problems ===== | ||
| + | After restoring astercc system,if you get " | ||
| + | |||
| + | < | ||
| + | |||
| + | After executing command, | ||
| + | < | ||
| + | chown -R asterisk.asterisk / | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| - | - system give prompt bars, click them one by one to apply the changes | ||