Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
lyz
backupninja
Commits
3d3c5aa3
Commit
3d3c5aa3
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a critical bug in pgsql handler vservers support.
parent
4b662f4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/pgsql
+4
-4
4 additions, 4 deletions
handlers/pgsql
with
4 additions
and
4 deletions
handlers/pgsql
+
4
−
4
View file @
3d3c5aa3
...
...
@@ -69,14 +69,14 @@ chmod 700 $vroot$backupdir
# if $databases = all, use pg_dumpall
if [ "$databases" == "all" ]; then
if [ $usevserver ]; then
execstr="$VSERVER $vsname exec su - postgres -c $PGSQLDUMPALL >
$vroot
$backupdir/${vsname}.sql"
execstr="$VSERVER $vsname exec su - postgres -c $PGSQLDUMPALL > $backupdir/${vsname}.sql"
else
execstr="su - postgres -c $PGSQLDUMPALL > $backupdir/${localhost}-all.sql"
fi
debug "$execstr"
if [ ! $test ]; then
output=`$execstr 2>&1`
code=$?
output=`$execstr 2>&1`
code=$?
if [ "$code" == "0" ]; then
debug $output
info "Successfully finished dump of pgsql cluster"
...
...
@@ -91,7 +91,7 @@ else
for db in $databases; do
if [ $usevserver ]
then
execstr="$VSERVER $vsname exec su - postgres -c $PGSQLDUMP $db >
$vroot
$backupdir/${db}.sql"
execstr="$VSERVER $vsname exec su - postgres -c $PGSQLDUMP $db > $backupdir/${db}.sql"
else
execstr="su - postgres -c $PGSQLDUMP $db > $backupdir/${db}.sql"
fi
...
...
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