Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.DATABASES.POSTGRESQL
pg_dump - exclude tables doesn't work with shell variables
From
Magnus Warker
@21:1/5 to
All
on Thu Apr 14 04:02:58 2016
Hello,
when I call pg_dump directly like this, it works fine:
pg_dump -Uwww -w -T'mig_*' mydb > test.sql
But when I build the commandline within a script with variables, the
table exclusion doesn't work:
#!/bin/sh
OPT="-Uwww -w -T'mig_*'"
f=test.sql
pg_dump $OPT mydb > $f
The dump is created, but it still contains the tables beginnig with "mig_".
What's wrong?
Thanks
Magnus
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Beg5210
Sat Oct 31 07:44:00 2026
from
Melbourne, Aus
via
Telnet
Beg5210
Sat Oct 31 07:42:02 2026
from
Melbourne, Aus
via
Telnet
Skreek
Sat Oct 31 01:26:37 2026
from
Leeds, England
via
Telnet
Ashenfieldx
Sat Oct 31 00:53:18 2026
from
Guelph, Ontario
via
Telnet
Rixter
Fri Oct 30 23:01:34 2026
from
Madison, Nc
via
Telnet
Brianm
Fri Oct 30 22:44:03 2026
from
Glasgow
via
Raw
Amstrad Ppc
Fri Oct 30 21:43:10 2026
from
Wiltshire
via
SSH
Amstrad Ppc
Fri Oct 30 19:12:25 2026
from
Wiltshire
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
795
Nodes:
16 (
3
/
13
)
Uptime:
138:22:41
Calls:
13,181
Calls today:
4
Files:
15,481
Messages:
6,578,992
Posted today:
2