This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:use_case:how_to_perform_system_backup [2015/03/16 02:20] – [Download Backup files] solo | en:use_case:how_to_perform_system_backup [2015/05/15 07:17] (current) – [File Backup] liuxl | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| 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 ===== | ||
| < | < | ||
| - | tar czf astercc_files.tar.gz / | + | sudo tar czfP astercc_files.tar.gz / |
| </ | </ | ||
| ===== Download Backup files===== | ===== Download Backup files===== | ||
| Now you have two files astercc_db.sql.gzip and astercc_files.tar.gz, | Now you have two files astercc_db.sql.gzip and astercc_files.tar.gz, | ||
| < | < | ||
| - | mv astercc_files.tar.gz astercc_db.sql.gzip / | + | sudo mv astercc_files.tar.gz astercc_db.sql.gzip / |
| </ | </ | ||
| Then you can download by visiting | Then you can download by visiting | ||
| - | http://your ip/ | + | http://your ip/ |
| and | and | ||
| - | http://your ip/ | + | http://your ip/ |
| + | <note tip>If you use CentOS,you can download by "wget http://your ip/ | ||