-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
26 lines (18 loc) · 789 Bytes
/
README
File metadata and controls
26 lines (18 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SQLBase utils
Minimal readme for now
Why?
sqllxtlk has a horrible CLI and SQLBase doesn't support backing up to a pipe
How?
Put your path to SQLBase in the SQLBASE environment variable.
SQLBASE library also uses SQLBASE to look for the sql.ini.
Compile with:
# mkdir bin
# export SQLBASE=/opt/Unify/SQLBase
# gcc -o bin/sqlbunl src/sqlbunl.c -I${SQLBASE}/include -L${SQLBASE}/lib -lsqllxm -lpthread -ldl
# gcc -o bin/sqlbdbn src/sqlbdbn.c -I${SQLBASE}/include -L${SQLBASE}/lib -lsqllxm -lpthread -ldl
Use with bacula:
# scripts/pipe-sqlbase-db
bpipe:/SQLBASE/DB1.sql:/usr/local/bin/sqlbunl DB1:
bpipe:/SQLBASE/DB2.sql:/usr/local/bin/sqlbunl DB2:
bpipe:/SQLBASE/DB3.sql:/usr/local/bin/sqlbunl DB3:
Add it like 'Plugin = "\\|/etc/bacula/scripts/bpipe-sqlbase-db"' in your FileSet.