#!/bin/bash # #rsync -hav --exclude={'*.txt','dir3','dir4'} sourcedir/ destinationdir/ # #rsync -havrp --exclude-from='exclude-list.txt' ./* /mnt/usb/ cd / # rsync -havrp --dry-run --exclude={'/proc','/sys','/dev','/mnt','/tmp','/run','/var/log','/home'} ./* /mnt/usb/