Changeset 2918


Ignore:
Timestamp:
Dec 20, 2011, 1:18:09 AM (5 years ago)
Author:
bruno
Message:
  • Exclude /run similarly to /sys and /proc
Location:
branches/3.0
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/rootfs/etc/init.d/rcS

    r2915 r2918  
    756756done
    757757#/bin/update
     758mkdir /proc 2> /dev/null
    758759mount /proc/ /proc -v -t proc
    759760mkdir /sys 2> /dev/null
  • branches/3.0/mondo-doc/mondoarchive.8

    r2902 r2918  
    161161This is the prefered and recommended option when doing partial archiving.
    162162Note that mondo automatically excludes removable media (/mnt/floppy,
    163 /mnt/cdrom, /proc, /sys, /tmp). For example, if you are backing up to an NFS mount but you
     163/mnt/cdrom, /proc, /sys, /run, /tmp). For example, if you are backing up to an NFS mount but you
    164164do not want to include the contents of the mount in a backup, exclude your
    165165local mount-point with this switch. It will also work with partitions, e.g.
  • branches/3.0/mondo-doc/mondorescue-howto.sgml

    r2848 r2918  
    322322</entry>
    323323<entry>
    324 If you want to backup the whole computer (excluding /sys and /proc,
    325 naturally) then leave this as / which is the default. Otherwise,
     324        If you want to backup the whole computer (excluding /sys, /run and /proc,
     325        naturally as well as /tmp) then leave this as / which is the default. Otherwise,
    326326specify subsets, (e.g. /usr/local /home ) being sure to put a space
    327327in between each path.
  • branches/3.0/mondo/src/common/libmondo-filelist.c

    r2825 r2918  
    13821382#if linux
    13831383        // 2.6 has /sys as a proc-type thing -- must be excluded
    1384         mr_asprintf(&strtmp, "find '%s' -maxdepth %d -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
     1384        mr_asprintf(&strtmp, "find '%s' -maxdepth %d -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype devtmpfs -prune -o -fstype proc -prune -o -fstype selinuxfs -prune -o -fstype securityfs -prune -o -fstype hugetlbfs -o -fstype cgroup -prune -prune -o -fstype mqueue -prune -o -fstype debugfs -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
    13851385#else
    13861386        // On BSD, for example, /sys is the kernel sources -- don't exclude
     
    16161616        paranoid_free(tmp1);
    16171617
    1618         mr_asprintf(&exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|"MNT_FLOPPY"|/media|/tmp|/proc|/sys|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
     1618        mr_asprintf(&exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|"MNT_FLOPPY"|/media|/tmp|/proc|/sys|/run|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
    16191619        if (excp != NULL) {
    16201620            mr_strcat(exclude_paths,"|%s",excp);
  • branches/3.0/mondo/src/common/libmondo-mountlist.c

    r2733 r2918  
    855855            !strcmp(mountlist->el[items].device, "/sys") ||
    856856            !strcmp(mountlist->el[items].device, "sys") ||
     857            !strcmp(mountlist->el[items].device, "/run") ||
     858            !strcmp(mountlist->el[items].device, "run") ||
    857859            !strcmp(mountlist->el[items].device, "/devpts") ||
    858860            !strcmp(mountlist->el[items].device, "devpts")
Note: See TracChangeset for help on using the changeset viewer.