Skip to content

Commit

Permalink
Improved backup location
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez committed Jan 18, 2021
1 parent 20d034f commit 811d6b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions presets/testnet/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ mosaicRentalFeeSinkAddress: TDGY4DD2U4YQQGERFMDQYHPYS6M7LHIF6XUCJ4Q
namespaceRentalFeeSinkAddress: TDGY4DD2U4YQQGERFMDQYHPYS6M7LHIF6XUCJ4Q
faucetUrl: 'http://faucet.testnet.symboldev.network'
trustedHosts:
backupSyncLocation: https://symbol-bootstrap.s3-eu-west-1.amazonaws.com/testnet/testnet-full-backup.zip
backupSyncLocalCacheFileName: testnet-full-backup.zip
backupSyncLocation: https://symbol-bootstrap.s3-eu-west-1.amazonaws.com/testnet/backup.zip
inflation:
starting-at-height-2: 95998521
starting-at-height-200: 91882261
Expand Down
4 changes: 2 additions & 2 deletions src/service/BackupSyncService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class BackupSyncService {
presetData.backupSyncLocalCacheFileName || `backup-${presetData.nemesisGenerationHashSeed}.zip`,
);
const fileLocation = (await BootstrapUtils.download(presetData.backupSyncLocation, downloadLocation)).fileLocation;

logger.info(`Restoring data from zip backup '${fileLocation}'`);
if (this.fullRestore)
await Promise.all(
(presetData.databases || []).map(async (db) => {
Expand Down Expand Up @@ -184,7 +184,7 @@ export class BackupSyncService {
if (!entry.stats?.isDirectory()) {
process++;
const percentage = ((process * 100) / totalFiles).toFixed(2);
const message = percentage + '% | ' + process + ' files zipped out of ' + totalFiles;
const message = `${percentage}% | ${process} files zipped out of ${totalFiles}`;
BootstrapUtils.logSameLineMessage(message);
}
const ignoreFiles = ['server.lock', 'broker.started', 'broker.lock'];
Expand Down

0 comments on commit 811d6b2

Please sign in to comment.