I'm confused with rsync's exclude.
I'm trying to backup every starting with / but exclude /media/ /mnt/ /home/files/ and /home/backup
sudo rsync -a \ --progress \ --stats \ --exclude-from=/home/files/ \ --exclude-from=/media/ \ --exclude-from=/mnt/ \ --exclude-from=/home/backup/ \ / /home/backup
I end up copying files to /home/backup/home/backup/... I read that I have to write my excludes relative to my transfer root, but i guess if / is my transfer root then /media/ should be relative to that right?