rsync is a powerful , I use it a lot to files, or to sync files between computers.

But, there are times when you do not want to have an exact copy in the remote from the files in the local . If you want to exclude some files from syncing you can use --exclude option.

Exclude a single

rsync -avz --exclude 'file' source/ destination/

Exclude a type of files

rsync -avz --exclude '*.typ' source/ destination/

Exclude a

rsync -avz --exclude 'folder' source/ destination/

Exclude multiple files or folders

rsync -avz --exclude '*.file_type' --exclude 'folder' source/ destination/
Print Friendly, PDF & Email

Comments

comments

Bài viết liên quan