I’m confused about something regarding rsync. I am moving some videos from PC1 to PC2 over the 'net using --files-from=FILENAME.
What I don’t get, is the difference between --relative and --dirs options (those are enabled when --files-from is used).
This is what I believe to be true:
–dirs lets rsync travel through directories WITHOUT recursive copying of directory contents. Without it, rsync will just IGNORE directories.
–relative sends (to the receiving end) the PATH of the files (like /my/path/foo/bar.gz) if the path is specified on the command line (or inside FILENAME with --files-from option)
- Which one will CREATE
the new directories on the receiving side, --dirs or --relative? - –no-dirs will prevent rsync from looking inside directories? This would mean that if I had a list of files in FILENAME, including some relative path names like “./.mozilla” it would completely skip over them?
- –no-relative will omit the whole path to the file (except filename)? Does this mean that the directory will still be opened and file transfered, but directory-name NOT be sent to receiving side?. If --no-relative is set, and --dirs is set, will the directories still be created on the receiving side? What if two files with the same name on different directories exist on the SENDER and they are transfered via rsync with --no-relative and --dirs? Will it transfer them both, but overwrite the first?