mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix
This commit is contained in:
@@ -67,7 +67,6 @@ export async function inspectUpload(
|
|||||||
try {
|
try {
|
||||||
entries = await listTarEntries(buffer);
|
entries = await listTarEntries(buffer);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Gzip but not a tar → fall back to raw (unchanged behavior).
|
|
||||||
log.info(
|
log.info(
|
||||||
{ dbms, error: error instanceof Error ? error.message : "unknown" },
|
{ dbms, error: error instanceof Error ? error.message : "unknown" },
|
||||||
"Gzip is not a tar archive, treating as raw dump",
|
"Gzip is not a tar archive, treating as raw dump",
|
||||||
|
|||||||
@@ -103,12 +103,6 @@ export function getFileHeadersBasedOnDbms(
|
|||||||
return mergeAccept(base, GZIP_ACCEPT);
|
return mergeAccept(base, GZIP_ACCEPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a matcher for a tar entry name that indicates the archive holds a
|
|
||||||
* valid backup for the given dbms. For postgres this covers both custom-format
|
|
||||||
* dumps (`pg_dump -Fc` → *.dump) and directory-format dumps (`pg_dump -Fd` →
|
|
||||||
* a `toc.dat` plus numbered data files).
|
|
||||||
*/
|
|
||||||
export function getArchiveEntryMatcher(dbType: string): RegExp {
|
export function getArchiveEntryMatcher(dbType: string): RegExp {
|
||||||
switch (dbType) {
|
switch (dbType) {
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
|
|||||||
Reference in New Issue
Block a user