man ampgsql

Konsole output
      STATEDIR
Directory for saving state about backups already made. The default is set when Amanda is built by the --with-gnutar-listdir configure
          option.


ampgsql to not use the gnutar_list_dir from amanda-client.conf
You must set the statedir properties in the dumptype.

Jean-Louis

On 19/06/15 04:40 PM, Kamil Jońca wrote:
I have to backup some postgresql databases. I used to use ampgsql for
that.
Some days ago I had to make full backup. And since then I have full
backup of postgres every day.
My suspection is that ampgsql ignores amanda-client.conf settings

my amanda-client.conf
--8<---------------cut here---------------start------------->8---
gnutar_list_dir "/var/lib/amanda/alfa/gnutar-lists"
amandates "/var/lib/amanda/alfa/amandates"
--8<---------------cut here---------------end--------------->8---

exceprts from /var/log/amanda/client/alfa/ampgsql.20150604151849000.debug

--8<---------------cut here---------------start------------->8---
Thu Jun  4 19:15:11 2015: thd-0x2baea00: ampgsql: size of generated tar file: 
16783360
Thu Jun  4 19:15:11 2015: thd-0x2baea00: ampgsql: statefile: 
/var/lib/amanda/gnutar-lists/ampgsql-%2fvar%2frun%2fpostgresql%2f-pg%2d9%2e4-5
Thu Jun  4 19:15:11 2015: thd-0x2baea00: ampgsql: Failed to write state file
--8<---------------cut here---------------end--------------->8---

Moreover when changed state file directory to its default location, then
ampgsq function properly again.
KJ


Reply via email to