Rsync --exclude-from file 'list' does not work

I am trying to use rsync to complete an incomplete transfer from a remote server to a local computer using

rsync -a user@domain.com:~/source/ /dest/

where /dest/is the location of the partially completed transmission. However, due to bandwidth problems, I need to run rsync on /tmp_dest/another machine that does not have a copy /dest/, from where I can then move /tmp_dest/to/dest/

The solution I came up with is to use the rync option --exclude-fromusing a file containing a complete list of files from /dest/.

The command will look something like this:

rsync -a --exclude-from 'list.txt' user@domain.com:~/source/ /tmp_dest/

At this moment, I feel like I was looking for a solution all the time and tried every option I came across.

These are relative and absolute paths for 'list.txt'

regarding:

path 1/file 1
path 2/file 2

- or -

absolute:

/absolute/source/path 1/file 1
/absolute/source/path 2/file 2

include -, ( , + )

- /absolute/source/path 1/file 1
- /absolute/source/path 2/file 2

**/ ,

**/path 1/file 1
**/path 2/file 2

, 'list', rsync , , rsync

/path/to/the/list/something1/to.exclude
/path/to/the/list/something2/to.exclude
/path/to/the/list/something3/to.exclude

, ,

, "list". .. LF (Unix).


'list'

find . -type f | tee list.txt

, .

./yyyy-mm-dd folder 1/sub folder [foo]/file.a
./(yyyy) folder 2 {foo2}/file.b
./folder, 3/sub-folder 3/file.c

, , . , , ,

./ ++ , LF (Unix), . (, , ./ , /absolute/path/for/source/, , , .

, , , - , , .

, - , .

+4
1

rsync, "--exclude-from": --exclude-from = FILE FILE

: rsync -a -exclude-from = list.txt user@domain.com: ~/source//tmp_dest/

list.txt

0

Source: https://habr.com/ru/post/1665077/


All Articles