The whole line should be compared, not just the first field.
Refactoring and logging for my backup scripts.

Use functions for tasks that do the same things.
Log all backups, in both joint log file and separate.
Only do one remote backup per day.
Don't roll the backup dirs if nothing changed the day before.