#include "amanda.h" #include "sendbackup.h" #include "amandates.h" #include "clock.h" #include "amutil.h" #include "getfsent.h" /* for amname_to_dirname lookup */ #include "conffile.h" #ifdef SAMBA_CLIENT #include "findpass.h" #endif static amregex_t re_table[] = { /* tar prints the size in bytes */ AM_SIZE_RE("^ *Total bytes written: [0-9][0-9]*", 1, 1), AM_NORMAL_RE("^Elapsed time:"), AM_NORMAL_RE("^Throughput"), /* GNU tar 1.13.17 will print this warning when (not) backing up a Unix named socket. */ AM_NORMAL_RE(": socket ignored$"), /* GNUTAR produces a few error messages when files are modified or removed while it is running. They may cause data to be lost, but then they may not. We shouldn't consider them NORMAL until further investigation. */ #ifdef IGNORE_TAR_ERRORS AM_NORMAL_RE(": File .* shrunk by [0-9][0-9]* bytes, padding with zeros"), AM_NORMAL_RE(": Cannot add file .*: No such file or directory$"), AM_NORMAL_RE(": Error exit delayed from previous errors"), #endif
/* SINIX ufsdump */ AM_SIZE_RE(" UFSDUMP: [0-9][0-9]* blocks", 512, 1), /* Irix 6.2 xfs dump */ AM_SIZE_RE("xfsdump: media file size [0-9][0-9]* bytes", 1, 1), /* NetApp dump */ AM_SIZE_RE("DUMP: [0-9][0-9]* KB", 1024, 1), /* strange dump lines */ AM_STRANGE_RE("should not happen"), AM_STRANGE_RE("Cannot open"), AM_STRANGE_RE("[Ee]rror"), AM_STRANGE_RE("[Ff]ail"), /* XXX add more ERROR entries here by scanning dump sources? */ /* any blank or non-strange DUMP: lines are marked as normal */ AM_NORMAL_RE("^ *DUMP:"), AM_NORMAL_RE("^dump:"), /* OSF/1 */ AM_NORMAL_RE("^vdump:"), /* OSF/1 */ AM_NORMAL_RE("^ *vxdump:"), /* HPUX10 */ AM_NORMAL_RE("^ *vxfs *vxdump:"), /* Solaris */ AM_NORMAL_RE("^Dumping .* to stdout"), /* Sol vxdump */ AM_NORMAL_RE("^xfsdump:"), /* IRIX xfs */ AM_NORMAL_RE("^ *VXDUMP:"), /* Sinix */ AM_NORMAL_RE("^ *UFSDUMP:"), /* Sinix */ #ifdef VDUMP /* this is for OSF/1 3.2's vdump for advfs */ AM_NORMAL_RE("^The -s option is ignored"), /* OSF/1 */ AM_NORMAL_RE("^path"), /* OSF/1 */ AM_NORMAL_RE("^dev/fset"), /* OSF/1 */ AM_NORMAL_RE("^type"), /* OSF/1 */ AM_NORMAL_RE("^advfs id"), /* OSF/1 */
#include "conffile.h" #include "amandad.h" #include "getopt.h" #include "sendbackup.h" int debug_application = 1; #define application_debug(i, ...) do { \ if ((i) <= debug_application) { \ dbprintf(__VA_ARGS__); \ } \ } while (0) static amregex_t init_re_table[] = { /* tar prints the size in bytes */ AM_SIZE_RE("^ *Total bytes written: [0-9][0-9]*", 1, 1), AM_NORMAL_RE("^could not open conf file"), AM_NORMAL_RE("^Elapsed time:"), AM_NORMAL_RE("^Throughput"), AM_IGNORE_RE(": Directory is new$"), AM_IGNORE_RE(": Directory has been renamed"), /* GNU tar 1.13.17 will print this warning when (not) backing up a Unix named socket. */ AM_NORMAL_RE(": socket ignored$"), /* GNUTAR produces a few error messages when files are modified or removed while it is running. They may cause data to be lost, but then they may not. We shouldn't consider them NORMAL until further investigation. */ AM_NORMAL_RE(": File .* shrunk by [0-9][0-9]* bytes, padding with zeros"), AM_NORMAL_RE(": Cannot add file .*: No such file or directory$"),
#include "client_util.h" #include "conffile.h" #include "getopt.h" #include "sendbackup.h" int debug_application = 1; #define application_debug(i, ...) do { \ if ((i) <= debug_application) { \ dbprintf(__VA_ARGS__); \ } \ } while (0) static amregex_t init_re_table[] = { /* tar prints the size in bytes */ AM_SIZE_RE("star: [0-9][0-9]* blocks", 10240, 1), AM_NORMAL_RE("^could not open conf file"), AM_NORMAL_RE("^Type of this level "), AM_NORMAL_RE("^Date of this level "), AM_NORMAL_RE("^Date of last level "), AM_NORMAL_RE("^Dump record level "), AM_NORMAL_RE("^Throughput"), AM_NORMAL_RE("^.*is sparse$"), #ifdef IGNORE_TAR_ERRORS AM_NORMAL_RE("^.*shrunk*$"), AM_NORMAL_RE("^.*changed size.*$"), AM_NORMAL_RE("^.*Cannot listxattr for.*$"), AM_NORMAL_RE("^.Cannot: stat .*$"), AM_NORMAL_RE("^.Missing links .*$"), AM_NORMAL_RE("^.Cannot get xattr.*$"), AM_NORMAL_RE("^.Cannot.*acl.*$"),