wanderleihuttel / bacula-utils Goto Github PK
View Code? Open in Web Editor NEWA collect of tools to use with bacula
Home Page: http://www.huttel.com.br
A collect of tools to use with bacula
Home Page: http://www.huttel.com.br
Excerpt from the command line output:
Time to restore table BaseFiles 05:00:00
Time to restore table CDImages 05:00:00
Time to restore table Client 05:00:00
Time to restore table Counters 05:00:00
Time to restore table Device 05:00:00
Time to restore table File 05:00:12
The dump of bareos 17 fails with:
Dumping MySQL tables ...
Table Time
BaseFiles 00:00:00
mysqldump: Couldn't find table: "CDImages"
CDImages 00:00:00
Client 00:00:00
mysqldump: Couldn't execute 'SELECT /*!40001 SQL_NO_CACHE */ Counter, MinValue, MaxValue, CurrentValue, WrapCounter FROM "Counters"': You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'MaxValue, CurrentValue, WrapCounter FROM "Counters"' at line 1 (1064)
Counters 00:00:00
Device 00:00:00
File 00:00:47
FileSet 00:00:00
mysqldump: Couldn't find table: "Filename"
Filename 00:00:00
Job 00:00:00
JobHisto 00:00:00
JobMedia 00:00:00
Location 00:00:00
LocationLog 00:00:00
Log 00:00:00
Media 00:00:00
MediaType 00:00:00
Path 00:00:01
PathHierarchy 00:00:00
PathVisibility 00:00:00
Pool 00:00:00
RestoreObject 00:00:00
mysqldump: Couldn't find table: "Snapshot"
Snapshot 00:00:00
Status 00:00:00
Storage 00:00:00
mysqldump: Couldn't find table: "UnsavedFiles"
UnsavedFiles 00:00:00
Version 00:00:00Elapsed time: 00:00:48
ERROR 1146 (42S02) at line 1: Table 'bareos.CDImages' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'bareos.Filename' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'bareos.Snapshot' doesn't exist
ERROR 1146 (42S02) at line 1: Table 'bareos.UnsavedFiles' doesn't exist
Total tables row countTable Row Count
basefiles 0
client 12
counters 0
device 0
file 5270270
fileset 4
job 119
jobhisto 9635
jobmedia 7808
location 0
locationlog 0
log 7400
media 337
mediatype 2
path 190622
pathhierarchy 51427
pathvisibility 0
pool 8
restoreobject 8
status 21
storage 4
version 1
Estou utilizando o ubuntu 18.04 por padrão ele traz hoje a versão do 7.2 do php, nesta versão o php-mcrypt foi descontinuado.
Para quem for instalar até uma nova versão do webacula, recomento instalar força o S.O usar a versão php7.1
Distribuições Debiam e ubuntu podem utilizar a seguinte instrução:
sudo add-apt-repository ppa:ondrej/php #Habilita o repositório para o PHP7.1
apt-get install apache2 libapache2-mod-php7.1 php7.1 php7.1-gd php7.1-dev php7.1-mcrypt php7.1-curl php7.1-json php7.1-xml php7.1-cli php7.1-pgsql #Pacotes web necessários para o webacula.
I am reading the section Converting from MySQL to PostgreSQL in Bacula's documentation and comparing step 2 from the process given there to mysql_to_postresql.sh
.
According to man mysqldump
:
--compact
Produce more compact output. This option enables the --skip-add-drop-table, --skip-add-locks, --skip-comments, --skip-disable-keys, and --skip-set-charset options.
At the same time your mysql_to_postresql.sh
uses --disable-keys
which conflicts the --skip-disable-keys
which --compact
implies.
What is the reason for adding --compact
and what is the effect of the contradiction above?
Why is line 19 in import_postgresql.sh
commented? It seems to contain the full list of table names which are available in psql after running make_bacula_tables.
I noticed that '/root/.pgpass' didn't work in my case. I had to copy the file to /var/lib/pgsql
(giving proper permissions) then:
su - postgres
./mysql_to_postresql.sh
./import_postgresql.sh
This is on openSUSE Leap 15.
Perhaps a note may be added on the readme about that.
./telegram.sh: 32: Syntax error: "(" unexpected
Who can i do for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.