Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
www-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Silvia Bindelli
www-test
Commits
aeec080b
Commit
aeec080b
authored
Jul 16, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated scripts
parent
14748892
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
scripts/backup.sh
scripts/backup.sh
+0
-0
scripts/sql_scrub_dump.sh
scripts/sql_scrub_dump.sh
+0
-4
No files found.
scripts/backup.sh
100644 → 100755
View file @
aeec080b
File mode changed from 100644 to 100755
scripts/sql_scrub_dump.sh
View file @
aeec080b
...
@@ -35,15 +35,11 @@ dump_output=${2}
...
@@ -35,15 +35,11 @@ dump_output=${2}
dropdb
"
$local_db
"
dropdb
"
$local_db
"
createdb
"
$local_db
"
createdb
"
$local_db
"
# Work in /tmp
cd
/tmp
# If there is yesterday backup, then delete it
# If there is yesterday backup, then delete it
if
[
-f
"
$dump_output
"
]
;
then
if
[
-f
"
$dump_output
"
]
;
then
rm
-f
"
$dump_output
"
rm
-f
"
$dump_output
"
fi
fi
# Extract the file and import in psql
# Extract the file and import in psql
tar
-xOvf
"
$dump_input
"
| psql
"
$local_db
"
tar
-xOvf
"
$dump_input
"
| psql
"
$local_db
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment