Menu

#38 Ignoring -f / --full argument

closed-rejected
nobody
None
5
2014-08-16
2005-05-19
No

Hi there.

Using plptools-0.12 on Debian (sarge, unstable) I can no
longer do full backups:

> $ plpbackup -f
> No action specified.
> Try 'plpbackup --help' for more information.

I've had a look at the source of plpbackup for both the
0.12
and 0.13 releases of plptools. Althought the code for
dealing
with arguments is slightly different, it seems to me
that in
both cases the value of "full" is ignored (see line
1538 of
plpbackup.cc in version 0.13). Please note that it's a
while
since I coded C/C++, so I may have the wrong end of the
stick.

For your information I got a compiler error when trying
to build
0.13 on my system. This may be because I haven't applied
the appropriate Debian patches so this may not be a bug (I
don't know anything about distribution stuff). Anyway,
here's
the error I get if in case it's useful to you:

> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../intl
-D_REENTRANT -O2 -fno-exceptions -fno-check-new -MT
rfsvfactory.lo -MD -MP -MF .deps/rfsvfactory.Tpo -c
rfsvfactory.cc -fPIC -DPIC -o .libs/rfsvfactory.o
> rfsvfactory.cc: In instantiation of
`Enum<rfsvfactory::errs>::sdata
> Enum<rfsvfactory::errs>::staticData':
> Enum.h:173: instantiated from `Enum<E>::Enum()
[with E =
> rfsvfactory::errs]'
> rfsvfactory.cc:50: instantiated from here
> rfsvfactory.cc:40: error: redefinition of
`Enum<rfsvfactory::errs>::sdata
> Enum<rfsvfactory::errs>::staticData'
> rfsvfactory.cc:40: error: `Enum<rfsvfactory::errs>::sdata
> Enum<rfsvfactory::errs>::staticData' previously
declared here
> make[1]: *** [rfsvfactory.lo] Error 1
> make: *** [all-recursive] Error 1

Good luck and thanks for supporting this useful package,

Malcohol.

Discussion

  • Reuben Thomas

    Reuben Thomas - 2005-05-19

    Logged In: YES
    user_id=50145

    You need g++ 3.4 to build (which is in Sarge).

    To do a backup, you need to specify (perhaps rather oddly) an action, as it
    says; for example, I use:

    plpbackup -q --backup=psion.tar.gz -f C:

    Line 1538 of plpbackup.c is just saying what I just said in C++ rather than
    English.

     
  • Reuben Thomas

    Reuben Thomas - 2005-05-19

    Logged In: YES
    user_id=50145

    Closing.

     
  • Reuben Thomas

    Reuben Thomas - 2005-05-19
    • status: open --> closed-rejected
     
  • Malcolm Tyrrell

    Malcolm Tyrrell - 2005-05-19

    Logged In: YES
    user_id=1281530

    Thank you for your help.

    So the -f flag is only ever used with the -b flag. I think,
    then, that the documentation is a bit misleading. In
    particular the man page and help text describe -f as
    "Perform a full backup..." and "Do a full backup..."
    respectively. Perhaps it's just that I'm getting stupid,
    since I've made full backups before.

    In any case, it might be worth pointing out the dependency
    in the man page and help text for the next release. I would
    be willing to provide appropriate English text if you want.

    Thanks again,

    Malcohol.

     

Log in to post a comment.