I am trying to use rsync include-from and exclude-from commands to ignore or only copy listed files/directories from a source. The list is in a text file. For some reason the command does not execute. Why is this the case?
rsync -ar —exclude-from 'exclude-list.txt' source/* destination/ rsync -ar —include-from 'exclude-list.txt' source2/* destination/
file1 file2 /dir1 /dir2