TritonDataCenter / pkgsrc-joyent

Various pkgsrc packages used by Joyent, not committed upstream yet
30 stars 31 forks source link

quickbackup-percona fails to detect xbstream format correctly #18

Open shaneiseminger opened 9 years ago

shaneiseminger commented 9 years ago

When attempting to restore an xbstream backup:

$ sudo quickbackup-percona restore /home/admin/2015-05-08_12-00-00-backup.xbs

  • Restore from /home/admin/2015-05-08_12-00-00-backup.xbs

ERROR - /home/admin/2015-05-08_12-00-00-backup.xbs appears to not be xbstream format. Check that your quickbackup/stream setting is set to the type of file you are trying to restore.

This definitely is an xbstream backup. The culprit is this line (line 321 in the version that came with my image):

[ file ${RESTOREFILE} | awk '{ print $2 }' != "data" ] && logerror "\nERROR - ${RESTOREFILE} appears to not be xbstream format.

When I comment it out the restore runs without issue.