May 2017
Beginner
552 pages
28h 47m
English
The -exclude and -exclude-from options specify files that should not be transferred:
--exclude PATTERN
We can specify a wildcard pattern of files to be excluded. Consider the following example:
$ rsync -avz /home/code/app /mnt/disk/backup/code --exclude "*.o"
This command excludes the .o files from backing up.
Alternatively, we can specify a list of files to be excluded by providing a list file.
Use --exclude-from FILEPATH.