Migrate Linux server user data (the process of migrating Linux user data from one server to another Linux server user)

1. Package the source Linux server user’s data

  • First go to the root directory and then use the tar command to package the data:tar czvf root.zip.gz ./*


2. Send the data of the source Linux server user

  • Use the command in the root directory:scp 打包好的数据 用户@ip:目的用户下的某个目录

    • Source Linux server user


3. View the data received by the destination server user

  • Check whether the compressed package has arrived:

  • Decompress the received data and use the commandtar xzvf root.zip.gz to decompress it to the current directory.

    • Target Linux server user

  • If you see that the data is the same as the data of the source server Linux user, it means success!


OKOK, that’s all for sharing in this issue. For information about getting started with Linux, you can read another blog on my homepage.

Guess you like

Origin blog.csdn.net/qq_44121078/article/details/133758297