Recovers backup files stored on a remote destination. This command would be used if the disk containing your local backup directory fails, or if a backup archive file or the main database is accidentally deleted from your local backup directory.
$ hb recover [-c backupdir] [destname] [--force]
The recover command will fetch all backup files from the remote destination that do not exist in the local backup directory and save them back into the local backup directory.
The --force option causes all remote files to be fetched even if there is already a local copy of the same file.
VERY IMPORTANT: in the event of a disk failure, you must have a copy of the dest.conf and key.conf files from your backup directory. These files are never copied to remote destinations. The dest.conf file is required to recover your backup from an offsite server, and the key.conf file is required to decode your encrypted backup data. You must copy your dest.conf and key.conf files to one or more USB flash drives, or print these files, and store the copies in several locations separate from the backup data.
EXAMPLE RECOVER SESSION:
$ hb recover -c /hbbackup
Backup directory: /hbbackup
Recovering backup files from destination: bsrsync
Files will be copied to: /hbbackup
Proceed with recovery? y
Getting dest.db from bsrsync
Getting hb.db from bsrsync
Getting arc.0.0 from bsrsync
Writing archive 0.0
Getting arc.0.1 from bsrsync
Writing archive 0.1
Getting arc.230.0 from bsrsync
Getting arc.231.0 from bsrsync
Getting arc.260.0 from bsrsync
Backup files recovered to: /hbbackup
Verify your backup is intact with the selftest command:
hb selftest -c /hbbackup
EXAMPLE SESSION NOTES: