Something weird happened while running an rsync command.I first mounted a Windows share to copy files to like this:mount -t cifs //myserver/share] /media/sThen ran rsync command belowsudo rsync -avprP /* /media/s/Backup --exclude '/backups' '/media'Now that I look at it, did the above rsync command not exclude /media, but actually back up to it?  Guessing I put the --exclude in wrong order or syntax? Thanks in advance.
Root directory duplicated in /media/media on Ubuntu Linux server
linux;rsync
Yes, --exclude only takes a single argument. Try --exclude '/backups' --exclude '/media'. (Actually, you don't need the single quotes around either of those, but they don't hurt.)