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
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
113
Nodes:
8 (
1
/
7
)
Uptime:
98:41:51
Calls:
2,501
Files:
8,682
Messages:
1,918,453