find /opt/dir/ -ctime -5 -PRint > backuplist vi backuplist 为了只是备份文件,所以,需要把目录删除,然后执行压缩备份: tar czf backup.tar.gz -T backuplist # tar -czf backup.tar.gz -T backuplist # tar -c -T /tmp/filelist -f /dev/nrsa0 |
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.