Disk Cleanup, the log directory is mounted to the space and more places

1 previous backup directory

cp -R /usr/local/logs/* /data/backup/logs

2 large disk directory to the new directory

mkdir /data/bigdata/logs

3 before you delete a directory and mount a new directory by soft connection

rm -rf /usr/local/logs
ln -s /data/bigdata/logs /usr/local

 

4 file restore software before connecting to the directory

 

cp -R  /data/backup/logs/*  /usr/local/logs

  

 

 

  

 

Guess you like

Origin www.cnblogs.com/QuestionsZhang/p/11606348.html