Changeset 3567 in MondoRescue for branches/3.2/mondo/src


Ignore:
Timestamp:
Apr 15, 2016, 11:20:20 PM (8 years ago)
Author:
Bruno Cornec
Message:

Add a MONDO_LOGFILENAME variable to allow the basename to be used when compressing the log on the target media

Location:
branches/3.2/mondo/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-archive.c

    r3564 r3567  
    15171517
    15181518    /*  Copy the current logfile - of course incomplete to the media */
    1519     mr_system("gzip -c9 %s > %s/archives/%s", MONDO_LOGFILE, tmp1, MONDO_LOGFILE);
     1519    mr_system("gzip -c9 %s > %s/archives/%s", MONDO_LOGFILE, tmp1, MONDO_LOGFILENAME);
    15201520
    15211521    if (is_this_device_mounted(bkpinfo->media_device)) {
  • branches/3.2/mondo/src/common/libmondo-fork.c

    r3564 r3567  
    143143
    144144    /*  Copy the current logfile - of course incomplete to the media */
    145     mr_system("gzip -c9 %s > ./archives/%d.%s", MONDO_LOGFILE, cd_number_str, MONDO_LOGFILE);
     145    mr_system("gzip -c9 %s > ./archives/%d.%s", MONDO_LOGFILE, cd_number_str, MONDO_LOGFILENAME);
    146146
    147147    log_to_screen("Please be patient. Do not be alarmed by on-screen inactivity.");
  • branches/3.2/mondo/src/mondoarchive/mondoarchive.h

    r3193 r3567  
    88 * Compatibility #define to ease the transition to logfile-in-a-variable.
    99 */
     10char *MONDO_LOGFILENAME = "mondoarchive.log";
    1011char *MONDO_LOGFILE = "/var/log/mondoarchive.log";
    1112char *MONDO_OPTIONS = "0123456789A:B:C:DE:FGHI:J:K:LM:NOP:QRS:T:UVWYb:c:d:ef:gik:l:mn:op:rs:tuw:x:z";
Note: See TracChangeset for help on using the changeset viewer.