Displaying 1 result from an estimated 1 matches for "cfolder".
Did you mean:
folder
2005 Jun 28
1
Question about include/exclude rules
...ept a point,
rsync create an empty folders structure that I don'want.
I'm trying to explain better.
Suppose that the source folder is:
./source/a.txt
./source/afolder
./source/afolder/b.txt
./source/afolder/c.doc
./source/bfolder/
./source/bfolder/a.doc
./source/bfolder/
./source/bfolder/cfolder/
./source/bfolder/cfolder/e.doc
.
I used the following syntax:
rsync -avz --delete-excluded ./source/ ./dest --exclude-from=exclude.txt
where the rules in the exclude.txt are:
+ *.txt
+ */
- *
rsync create in the dest folder:
./dest/a.txt
./dest/afolder
./dest/afolder/b.txt
./dest/bfolder/
....