only write to backups bucket in self host
This commit is contained in:
parent
9cc55c08d3
commit
f9d368f021
|
@ -130,11 +130,13 @@ exports.performBackup = async (appId, backupName) => {
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
// write the file to the object store
|
// write the file to the object store
|
||||||
await streamUpload(
|
if (env.SELF_HOSTED) {
|
||||||
ObjectStoreBuckets.BACKUPS,
|
await streamUpload(
|
||||||
join(appId, backupName),
|
ObjectStoreBuckets.BACKUPS,
|
||||||
fs.createReadStream(path)
|
join(appId, backupName),
|
||||||
)
|
fs.createReadStream(path)
|
||||||
|
)
|
||||||
|
}
|
||||||
return fs.createReadStream(path)
|
return fs.createReadStream(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue