Skip to content

How to use --files-from options ? #264

Answered by WayneD
Stephenfang51 asked this question in Q&A
Discussion options

You must be logged in to vote

You must specify a source and destination directory for even a files-from copy. The paths in the files-from list are all relative to the source directory. Specify "/" as the source dir if you want to specify full, absolute paths in the file. Also, don't specify -z on local copies (I also recommend -i). So, you probably want to specify:

rsync -aivh --files-from=test.txt / /home/user/path/tomove
or
rsync -aivh --files-from=test.txt . /home/user/path/tomove

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Stephenfang51
Comment options

Answer selected by WayneD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #261 on December 16, 2021 03:10.