Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
restoredb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
restoredb
Commits
49155c02
Commit
49155c02
authored
2 years ago
by
Santiago Said
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
72d9fa22
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-0
11 additions, 0 deletions
README.md
with
11 additions
and
0 deletions
README.md
+
11
−
0
View file @
49155c02
This script allows to fetch a db dump from aws s3 and inject it to your actual environment (Based on your pwd)
To install widely available run:
sudo curl https://gitlab.eynes.com.ar/infra/restoredb/-/raw/master/restorerdb.sh -o /bin/restorerdb.sh && sudo chmod +x /bin/restorerdb.sh
In your bashrc or zshrc set this parameters:
export DB_DEST=devel
export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
To use it go to where you have a doodba environment and do this:
BASE_URL=s3://e2-production/serivet/ ./restorerdb.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment