Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito - PHP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
37
Issues
37
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito - PHP
Commits
aeec080b
Commit
aeec080b
authored
10 years ago
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated scripts
parent
14748892
master
v7.34
v7.33
v7.32
v7.31
v7.30
v7.29
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
This diff is collapsed.
Click to expand it.
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
"
...
...
This diff is collapsed.
Click to expand it.
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