备份

 

备份:

 

backup_path='/tmp/backup'

 

for file in $(rpm -ql openssh);do mkdir -p $backup_path/`dirname $file`; \cp -arf $file $backup_path/$file; done

 

恢复:

\cp  -arf  $backup_path/*   /

posted @ 2019-04-08 23:32  caya  阅读(391)  评论(2编辑  收藏  举报