Giter Club home page Giter Club logo

bacula-utils's People

Contributors

carlosedulucas avatar wanderleihuttel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bacula-utils's Issues

Time shows as 05:00:00 instead of 00:00:00

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

Add support for baeros

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:00

Elapsed 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 count

Table 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

Compatibilidade somente até PHP7.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.

--compact contradicts --disable-keys

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?

Tables discrepancies

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.

Creating '/root/.pgpass' didn't work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.