Changeset 2918 in MondoRescue
- Timestamp:
- Dec 20, 2011, 1:18:09 AM (13 years ago)
- Location:
- branches/3.0
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/rootfs/etc/init.d/rcS
r2915 r2918 756 756 done 757 757 #/bin/update 758 mkdir /proc 2> /dev/null 758 759 mount /proc/ /proc -v -t proc 759 760 mkdir /sys 2> /dev/null -
branches/3.0/mondo-doc/mondoarchive.8
r2902 r2918 161 161 This is the prefered and recommended option when doing partial archiving. 162 162 Note 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 you163 /mnt/cdrom, /proc, /sys, /run, /tmp). For example, if you are backing up to an NFS mount but you 164 164 do not want to include the contents of the mount in a backup, exclude your 165 165 local mount-point with this switch. It will also work with partitions, e.g. -
branches/3.0/mondo-doc/mondorescue-howto.sgml
r2848 r2918 322 322 </entry> 323 323 <entry> 324 If you want to backup the whole computer (excluding /sysand /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, 326 326 specify subsets, (e.g. /usr/local /home ) being sure to put a space 327 327 in between each path. -
branches/3.0/mondo/src/common/libmondo-filelist.c
r2825 r2918 1382 1382 #if linux 1383 1383 // 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); 1385 1385 #else 1386 1386 // On BSD, for example, /sys is the kernel sources -- don't exclude … … 1616 1616 paranoid_free(tmp1); 1617 1617 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); 1619 1619 if (excp != NULL) { 1620 1620 mr_strcat(exclude_paths,"|%s",excp); -
branches/3.0/mondo/src/common/libmondo-mountlist.c
r2733 r2918 855 855 !strcmp(mountlist->el[items].device, "/sys") || 856 856 !strcmp(mountlist->el[items].device, "sys") || 857 !strcmp(mountlist->el[items].device, "/run") || 858 !strcmp(mountlist->el[items].device, "run") || 857 859 !strcmp(mountlist->el[items].device, "/devpts") || 858 860 !strcmp(mountlist->el[items].device, "devpts")
Note:
See TracChangeset
for help on using the changeset viewer.