This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:use_case:how_to_perform_system_backup [2015/03/16 01:55] – created solo | en:use_case:how_to_perform_system_backup [2015/05/15 07:17] (current) – [File Backup] liuxl | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to perform asterCC system backup ====== | ====== How to perform asterCC system backup ====== | ||
| + | <note tip>You need to ssh to your server for the following operation</ | ||
| ===== Database Backup ===== | ===== Database Backup ===== | ||
| < | < | ||
| mysqldump -uroot -p astercc10 | gzip > astercc_db.sql.gz | mysqldump -uroot -p astercc10 | gzip > astercc_db.sql.gz | ||
| </ | </ | ||
| - | System will prompt for database root password, you can find it in / | + | System will prompt for database root password, you can find it in / |
| + | <note warning> | ||
| ===== File Backup ===== | ===== File Backup ===== | ||
| + | < | ||
| + | sudo tar czfP astercc_files.tar.gz / | ||
| + | </ | ||
| + | ===== Download Backup files===== | ||
| + | Now you have two files astercc_db.sql.gzip and astercc_files.tar.gz, | ||
| + | < | ||
| + | sudo mv astercc_files.tar.gz astercc_db.sql.gzip / | ||
| + | </ | ||
| + | Then you can download by visiting | ||
| + | |||
| + | | ||
| + | |||
| + | and | ||
| + | |||
| + | | ||
| + | |||
| + | <note tip>If you use CentOS,you can download by "wget http://your ip/ | ||