Changeset 3560 in MondoRescue


Ignore:
Timestamp:
Apr 11, 2016, 3:45:50 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Fix #730 by copying current version of logfile to backup media
Location:
branches/3.2/mondo/src/common
Files:
2 edited

Legend:

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

    r3539 r3560  
    15151515    paranoid_free(tmp1);
    15161516
     1517    /*  Copy the current logfile - of course incomplete to the media */
     1518    mr_system("gzip -c9 %s > %s/archives/%d.%s", MONDO_LOGFILE, tmp1, cd_number_str, MONDO_LOGFILE);
     1519
    15171520    if (is_this_device_mounted(bkpinfo->media_device)) {
    15181521        mr_asprintf(tmp, "umount %s1", bkpinfo->media_device);
  • branches/3.2/mondo/src/common/libmondo-fork.c

    r3497 r3560  
    141141    mr_asprintf(command, "%s >> %s", ultimate_call, MONDO_LOGFILE);
    142142
     143    /*  Copy the current logfile - of course incomplete to the media */
     144    mr_system("gzip -c9 %s > ./archives/%d.%s", MONDO_LOGFILE, cd_number_str, MONDO_LOGFILE);
     145
    143146    log_to_screen("Please be patient. Do not be alarmed by on-screen inactivity.");
    144147    log_msg(4, "Calling open_evalcall_form() with what_i_am_doing='%s'", what_i_am_doing);
Note: See TracChangeset for help on using the changeset viewer.