Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAI-1570 add new get-used-storage script #1722

Conversation

PE39806
Copy link
Contributor

@PE39806 PE39806 commented Jan 8, 2025

Example output:

$ npm run script -- getTotalStorageUsedMongo

> [email protected] script
> npm --prefix ./backend/ run script getTotalStorageUsedMongo


> script
> tsx src/scripts/runScript.ts getTotalStorageUsedMongo

info  - (src/utils/database.ts:1): Connected to Mongoose
info  - (src/scripts/getTotalStorageUsedMongo.ts:1): Storage used: (existing=11872605593 deleted=1247864 total=11873853457)
info  - (src/scripts/getTotalStorageUsedMongo.ts:1): Formatted storage used: (existing=11.9 GB deleted=1.25 MB total=11.9 GB)
info  - (src/utils/database.ts:1): Disconnected from Mongoose (log=false)

@PE39806 PE39806 marked this pull request as ready for review January 8, 2025 13:25
@PE39806 PE39806 merged commit 64df7af into main Jan 13, 2025
18 checks passed
@PE39806 PE39806 deleted the feature/BAI-1570-write-a-script-that-calculates-the-total-size-of-all-files-in-bailo branch January 13, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants