Fix bug: backup all rules doesn't work as expected.

Also swapped indexes of the 2 kinds of backups to avoid confusion.