【发布时间】:2012-02-01 23:06:41
【问题描述】:
我目前正在运行 rsync 命令来备份我的特定文件夹。
命令如下:
rsync -rtzv -e --exclude "generator/" --exclude "workspace/gallery/server/lib/personas_constants.php" /home/brandon/workspace/gallery /home/brandon/workspace/gallery2
我遇到的问题是 --exclude 不排除特定文件。它是我运行 rsync 命令的文件的相对路径。但是,排除确实适用于“生成器/”目录。
有人可以帮我解释一下吗?
【问题讨论】:
-
作为任何不戴眼镜的谷歌搜索的人的说明。 --exclude 前面有两个破折号。