The regex you are using is broken, therefore no tables are backed up. The correct regex is:
!/^#__/
This RegEx means do not backup anything that does not (!) match the regex (/): table name begins with (^) the database table prefix (#__); end of regex (/). Therefore it only backs up tables which start with the prefix of the site you are backing up.
Your RegEx (!/^#__/!/) means do not backup anything that does not (!) match the regex (/): table name begins with (^) the database table prefix (#__) followed by slash and exclamation mark (/!); end of regex (/). Since no table starts with #__/! (it can't; the slash is not a valid table name character) nothing is being backed up. This results in an empty db backup. Since this is the main db we can't possibly allow that and you get a nice error when restoring.
I hope that helps you better understand what happened!
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!