In the following example the file src_directory/file.txt will not be transferred: rsync -a -exclude 'file.txt' src_directory/ dst_directory/ Exclude a Specific Directory #Įxcluding a specific directory is same as excluding a file, just pass the relative path to the directory to the -exclude option as shown below: rsync -a -exclude 'dir1' src_directory/ dst_directory/ To exclude a specific file, pass the relative path to the file to the -exclude option.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |