typo in format name

This commit is contained in:
Girish Ramakrishnan
2017-10-10 13:54:54 -07:00
parent 78807782df
commit fd3b73bea2
+2 -2
View File
@@ -459,7 +459,7 @@ function uploadBoxSnapshot(backupConfig, callback) {
// for the moment, box backups are always tarball based. this is because it makes it easy to restore
// in the future, if required, we can move out the mailboxes to a separate virtual app backup
const format = backupConfig.provider === 'exoscale-sos' ? 'flat-file' : 'tgz'; // see also rotateBoxBackup
const format = backupConfig.provider === 'exoscale-sos' ? 'rsync' : 'tgz'; // see also rotateBoxBackup
runBackupTask('snapshot/box', format, paths.BOX_DATA_DIR, function (error) {
if (error) return callback(error);
@@ -482,7 +482,7 @@ function rotateBoxBackup(backupConfig, timestamp, appBackupIds, callback) {
var snapshotTime = snapshotInfo.timestamp.replace(/[T.]/g, '-').replace(/[:Z]/g,'');
var backupId = util.format('%s/box_%s_v%s', timestamp, snapshotTime, config.version());
const format = backupConfig.provider === 'exoscale-sos' ? 'flat-file' : 'tgz'; // // see also uploadBoxSnapshot
const format = backupConfig.provider === 'exoscale-sos' ? 'rsync' : 'tgz'; // // see also uploadBoxSnapshot
debug('rotateBoxBackup: rotating to id:%s', backupId);