Fixed a trivial bug in do_backup()