Skip to content

Commit

Permalink
feat: add fn
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Dec 26, 2023
1 parent 47e40a8 commit 7216833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/generate_tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def generate_latest_tarball():
# Execute the mongodump command
archive_date = datetime.now().strftime("%Y-%m-%d")
command = f"mongodump --uri={mongo_uri}--archive=static/registry-{archive_date}.tar.gz --gzip --excludeCollection=users"
command = f"mongodump --uri={mongo_uri} --archive=static/registry-{archive_date}.tar.gz --db={database_name} --gzip --excludeCollection=users"
subprocess.call(command, shell=True)
print("Database backup created successfully")

Expand Down

1 comment on commit 7216833

@vercel
Copy link

@vercel vercel bot commented on 7216833 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks for Deployment have failed

Please sign in to comment.