Skip to content

Commit

Permalink
fix: snapshot files go to objects dir
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu authored Jun 25, 2022
1 parent 9cb1eae commit c62896a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function backup(
console.log('--->', sourceDb, 'Backed up successfully to ---> ', snapshotName)

// write the `fileNames` into a snapshot file that contains the locations of the obj files which contain the current State of specified page of the sqlite database
writeFileSync(snapshotName, fileNames.join('\n'));
writeFileSync(`${objDir}../${snapshotName}`, fileNames.join('\n'));
}
)
})
Expand Down

0 comments on commit c62896a

Please sign in to comment.