This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:faq:how_to_migrate_astercc_system [2015/12/06 09:31] liuxl [Fourth:Copy(or Overwrite) the Config Files of System] |
en:faq:how_to_migrate_astercc_system [2017/12/12 03:05] (current) |
||
|---|---|---|---|
| Line 139: | Line 139: | ||
| {{:en:faq:backup_plans_2.png?750|}} | {{:en:faq:backup_plans_2.png?750|}} | ||
| - | You can see the backup file of system config files (marked by yellow rectangle),for example,我们将其解压(eg:"_etc_" 开头的压缩包为例): | + | You can see the backup file of system config files (marked by yellow rectangle),we can unzip the .tar package execute below commands: |
| {{:zh:常见问题及解答:备份的配置文件.png?850|}} | {{:zh:常见问题及解答:备份的配置文件.png?850|}} | ||
| Decompress commands: | Decompress commands: | ||
| + | |||
| <code> tar -xzvf XXXXX.tar.gz </code> | <code> tar -xzvf XXXXX.tar.gz </code> | ||
| - | 将三条记录都解压,会出现一个叫 etc 的文件夹,解压完后有四个文件夹,将其四个及其目录下的所有文件夹、文件复制到新的服务器“相应”位置, 即: | + | Decompress all archive,then copy(or mv) all files and directories under original location correspondingly, i.e.: |
| <code> | <code> | ||
| Line 155: | Line 156: | ||
| </code> | </code> | ||
| - | 需要说明的是:\cp是在复制时,不提示覆盖信息用的,-r是有关目录的操作,-p是除复制源文件的内容外,还将把其修改时间和访问权限也复制到新文件中,-f是强行操作 慎重使用。 | + | Note:When use "\cp" (not cp) command to copy(or overwrite),there is no any overwrite information. -r:not only copy files,but also directories. -f:force |
| {{:zh:常见问题及解答:备份文件1_1_6.png?850|}} | {{:zh:常见问题及解答:备份文件1_1_6.png?850|}} | ||