I back up my laptop to my portable external hard drive about once a week using rsync after syncing the files using Unison. (lawyerist.com)
Now to exclude / data / web / cache and / data / web / temp from rsync using this command, we'd remove the / data / web / portion of the path and the / data / exclusions file would simply contain this: (howtogeek.com)
Say, for example, you are trying to backup / data / web / and send it to another server, so you use a command like rsync - a / data / web / user@server: / backups / data / web / to make it happen... but you'd really like to skip syncing the / data / web / cache / folder. (howtogeek.com)