Adjust the basic method of file system space

xiaoxiao2021-03-06  40

Adjusting the basic method of the file system space is to use a symbolic connection, you can transfer all of the data in one subdirectory in the file system or copy to another directory in other file systems, and then rename or delete the original directory, and then Create a symbolic connection to the new directory to achieve the purpose. For example, the / usr / local directory can be transferred to another file system mounted to / disk2: # cd / usr / local # tar cf - * | (cd / disk2; tar xf -) # mv / usr / local / usr /LOCAL.OLD # ln -s / disk2 / local / usr / local In order to ensure data security and complete, there is no use of MV direct mobile data in this example, but use tar to copy data to another directory, whose use TAR Not the CP -R command, to ensure the consistency of their owners and permission control properties in order to ensure copy files and directorys.

转载请注明原文地址:https://www.9cbs.com/read-66440.html

New Post(0)