我正在使用以下命令压缩60G的银行备份,但日志会告知以下消息。 会是什么
命令:
BZIP=-9 tar -cvjf /backup/backup-mysql-'date "+%Y%m%d"'.tar.bz2 /backup/backup-mysql
错误:
tar: "+%Y%m%d".tar.bz2: Cannot stat: No such file or directory
tar: Removing leading `/' from member names
答案 0 :(得分:1)
尝试使用以下命令:
tar -cvjf /backup/backup-mysql-$(date "+%Y%m%d").tar.bz2 /backup/backup-mysql