Ignore:
Timestamp:
Apr 18, 2008, 1:41:41 AM (16 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 1902:1923 $SVN_M/branches/2.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondorestore.c

    r1904 r1924  
    924924
    925925    strcpy(bkpinfo->restore_path, "/");
    926     if (!g_restoring_live_from_cd) {
     926    if (!g_restoring_live_from_cd && !g_restoring_live_from_nfs) {
    927927        popup_and_OK
    928928            (_("Please insert tape/CD/USB key, then hit 'OK' to continue."));
    929929        sleep(1);
    930930    }
    931     interactively_obtain_media_parameters_from_user(FALSE);
     931    if (!g_restoring_live_from_nfs) {
     932        interactively_obtain_media_parameters_from_user(FALSE);
     933    }
    932934    if (!bkpinfo->media_device) {
    933935        mr_msg(2, "Warning - failed to find media dev");
     
    948950    retval = load_mountlist(mountlist, g_mountlist_fname);
    949951    load_raidtab_into_raidlist(raidlist, RAIDTAB_FNAME);
    950     filelist = process_filelist_and_biggielist();
    951     if (filelist) {
     952
     953    if (!g_restoring_live_from_nfs && (filelist = process_filelist_and_biggielist())) {
    952954        save_filelist(filelist, "/tmp/selected-files.txt");
    953955        mr_asprintf(&old_restpath,bkpinfo->restore_path);
     
    961963        strcpy(bkpinfo->restore_path, old_restpath);
    962964        mr_free(old_restpath);
     965    } else {
     966        retval += restore_everything(NULL);
    963967    }
    964968    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
     
    27062710    paranoid_fclose(fout);
    27072711    sprintf(command,
    2708             "tar -zxvf %s tmp/mondo-restore.cfg tmp/mountlist.txt tmp/filelist.full tmp/biggielist.txt",
     2712            "tar -zxvf %s ./tmp/mondo-restore.cfg ./tmp/mountlist.txt ./tmp/filelist.full ./tmp/biggielist.txt",
    27092713            datadisks_fname);
    27102714    run_program_and_log_output(command, 4);
     
    30443048            g_restoring_live_from_cd = TRUE;
    30453049        }
     3050        if (bkpinfo->backup_media_type == nfs) {
     3051            g_restoring_live_from_nfs = TRUE;
     3052        }
    30463053        if (argc == 5 && strcmp(argv[1], "--monitas-live") == 0) {
    30473054            retval =
Note: See TracChangeset for help on using the changeset viewer.