TAR ZCVF / TMP/Backup.tar.gz / * --ExClude = / proc / * --Exclude = / tmp / *
The target file after the backup is backup.tar.gz, excludes the file in the PROC, TMP directory using the Exclude parameter, and the files in the two directory are not packaged backup.