0

我正在使用以下命令压缩 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
4

1 回答 1

1

尝试使用以下命令:

tar -cvjf /backup/backup-mysql-$(date "+%Y%m%d").tar.bz2 /backup/backup-mysql
于 2019-01-22T04:07:32.110 回答