Changeset 794 in MondoRescue
- Timestamp:
- Sep 14, 2006, 1:05:18 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/README
r764 r794 50 50 51 51 Apart from the above-mentioned documentation, there is a Wiki with growing 52 contents at the following URL: http:// www.mondorescue.org/cgi-bin/trac.cgi/wiki52 contents at the following URL: http://trac.mondorescue.org 53 53 54 54 Also, there is a mailing list mondo-devel@lists.sourceforge.net. Please go to -
trunk/mindi/mindi
r782 r794 1459 1459 fi 1460 1460 1461 # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice. e.g. : LABEL=SWAP-hda5 1461 # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice or SW-mydevice. e.g. : LABEL=SWAP-hda5 1462 # LABEL=SW-cciss/c0d0p3 (RDP) 1462 1463 # SWAP only 1463 if [ "x$actual_dev" = "x" -a _"`echo $current_partition | /bin/grep -i 'LABEL=SWAP'`" != _"" ]; then1464 if [ "x$actual_dev" = "x" -a _"`echo $current_partition | /bin/grep -iE 'LABEL=SWAP|LABEL=SW-'`" != _"" ]; then 1464 1465 try_dev="`echo "$redhat_label" | /bin/cut -d '-' -f2`" 1465 1466 present_dev="`/bin/cat /proc/swaps | /bin/grep -w /dev/$try_dev`" … … 1497 1498 current_lvolume="`find /dev -lname "$current_partition" | grep -Ev '^/dev/\.static/'`" 1498 1499 echo $current_lvolume | grep -q ' ' 1499 if [ $? -eq 0 ]; then1500 if [ $? -eq 0 ]; then 1500 1501 echo "WARNING: Multiple Logical Volumes found. Report to dev team" >> $LOGFILE 1501 1502 fi -
trunk/mondo-doc/mondoarchive.8
r729 r794 160 160 .TP 161 161 .BI "-J " "file" 162 Specify an explicit list of files and directories in a plain text file, one item163 (file or directory) per line. 162 Specify an explicit list of files and directories to include in a plain text file, one item 163 (file or directory) per line. Beware that directories placed in that file are not managed recursively contrary to what is done with the -I option. 164 164 165 165 .TP 166 166 .BI "-N" 167 Exclude all mounted network filesystems. This currently means NFS, SMB, Coda 167 Exclude all mounted network filesystems. This currently means NFS, SMB, Coda, MVFS, AFS 168 168 and Netware. In other words, only backup the local hard disk(s). 169 169 -
trunk/mondo/ChangeLog
r788 r794 3 3 MONDO CHANGES 4 4 5 3.0.0 (2006-0 8-30)5 3.0.0 (2006-09-30) 6 6 - indent on source files 7 7 - asprintf used instead of malloc_string + sprintf/strcpy/strcat without verifications. Optimisations on memory consumption (allocate only size needed + remove memory leaks) (Bruno Cornec) 8 8 - Internationalization (A huge thank to rene-marc dolhen <rmd_at_mecreant.org> who achieved that big task) 9 10 2.2.0 (2006-09-05) 9 11 10 12 2.0.9 (2006-08-04) -
trunk/mondo/README
r764 r794 50 50 51 51 Apart from the above-mentioned documentation, there is a Wiki with growing 52 contents at the following URL: http:// www.mondorescue.org/cgi-bin/trac.cgi/wiki52 contents at the following URL: http://trac.mondorescue.org 53 53 54 54 Also, there is a mailing list mondo-devel@lists.sourceforge.net. Please go to -
trunk/mondo/mondo/common/libmondo-devices.c
r783 r794 2024 2024 { 2025 2025 return(call_program_and_get_last_line_of_output 2026 ("mount -t coda,ncpfs,nfs,smbfs,cifs, mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'"));2026 ("mount -t coda,ncpfs,nfs,smbfs,cifs,afs,mvfs | tr -s '\t' ' ' | cut -d' ' -f3 | tr -s '\n' ' ' | awk '{print $0;}'")); 2027 2027 /* BERLIOS : Useless 2028 2028 asprintf(&exclude_these_devices, 2029 2029 call_program_and_get_last_line_of_output 2030 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs| mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));2030 ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs|afs|mvfs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'")); 2031 2031 */ 2032 2032 } … … 2052 2052 #ifdef __FreeBSD__ 2053 2053 tmp = call_program_and_get_last_line_of_output 2054 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs, mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'");2054 ("df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"); 2055 2055 #else 2056 2056 tmp = call_program_and_get_last_line_of_output 2057 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x mvfs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'");2057 ("df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x mvfs | sed 's/ /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"); 2058 2058 #endif 2059 2059 -
trunk/mondo/mondo/common/libmondo-fifo.c
r688 r794 55 55 /* @} - end of globalGroup */ 56 56 57 extern char *ps_options; 57 58 58 59 /** … … 129 130 } 130 131 sleep(2); 131 asprintf(&tmp, "ps wwax | grep \"%s\"", g_sz_call_to_buffer);132 asprintf(&tmp, "ps %s | grep \"%s\"", ps_options, g_sz_call_to_buffer); 132 133 if (run_program_and_log_output(tmp, 2)) { 133 134 log_msg(2, "Warning - I think I failed to open tape, actually."); … … 135 136 paranoid_free(tmp); 136 137 g_tape_buffer_size_MB = bufsize; 137 /* BERLIOS: usless ? 138 strcmp(tmp, g_sz_call_to_buffer); 139 tmp[30] = '\0'; 140 */ 141 asprintf(&tmp, "ps wwax | grep buffer | grep -v grep"); 138 asprintf(&tmp, "ps %s | grep buffer | grep -v grep", ps_options); 142 139 if (run_program_and_log_output(tmp, 1)) { 143 140 fres = NULL; … … 161 158 sync(); 162 159 asprintf(&command, 163 "ps wwax | grep -F \"%s\" | grep -Fv grep | awk '{print $1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'",160 "ps | grep -F \"%s\" | grep -Fv grep | awk '{print $1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'", ps_options, 164 161 g_sz_call_to_buffer); 165 162 paranoid_free(g_sz_call_to_buffer); -
trunk/mondo/mondo/common/libmondo-filelist.c
r783 r794 1350 1350 // 2.6 has /sys as a proc-type thing -- must be excluded 1351 1351 asprintf(&tmp, 1352 "find %s -maxdepth %d -fstype mvfs -prune -o - path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null",1352 "find %s -maxdepth %d -fstype mvfs -prune -o -fstype afs -prune -o -path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null", 1353 1353 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1354 1354 #else 1355 1355 // On BSD, for example, /sys is the kernel sources -- don't exclude 1356 1356 asprintf(&tmp, 1357 "find %s -maxdepth %d -fstype mvfs -prune -o - path /proc -prune -o -type d -a -print > %s 2> /dev/null",1357 "find %s -maxdepth %d -fstype mvfs -prune -o -fstype afs -prune -o -path /proc -prune -o -type d -a -print > %s 2> /dev/null", 1358 1358 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1359 1359 #endif -
trunk/mondo/mondo/common/newt-specific.c
r783 r794 32 32 extern char *g_tmpfs_mountpt; 33 33 extern char *g_mondo_home; 34 extern char *ps_options; 34 35 35 36 extern void set_signals(int); … … 232 233 } 233 234 235 /** 236 * Kill any process containing the string @p str surrounded by spaces in its commandline. 237 */ 238 void kill_anything_like_this(char *str) { 239 240 char *tmp = NULL; 241 242 asprintf(&tmp,"kill `ps %s | grep \"" %s "\" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str); 243 run_program_and_log_output(tmp, TRUE); 244 paranoid_free(tmp); 245 } 234 246 235 247 /** -
trunk/mondo/mondo/mondoarchive/main.c
r783 r794 39 39 bool g_skip_floppies; 40 40 long diffs; 41 char *ps_options = "auxww"; 41 42 42 43 extern int g_loglevel; -
trunk/mondo/mondo/mondorestore/mondo-restore.c
r783 r794 122 122 */ 123 123 char *g_mondo_home = NULL; 124 125 char *ps_options = ""; 124 126 125 127 /* @} - end of "Restore-Time Globals" in globalGroup */ -
trunk/mondo/mondo/mondorestore/mondo-rstr-tools.c
r783 r794 369 369 char *command; 370 370 asprintf(&command, 371 "kill `ps wax2> /dev/null | grep petris 2> /dev/null | grep -v grep | cut -d' ' -f2` 2> /dev/null");371 "kill `ps 2> /dev/null | grep petris 2> /dev/null | grep -v grep | cut -d' ' -f2` 2> /dev/null"); 372 372 paranoid_system(command); 373 373 paranoid_free(command); … … 1985 1985 && 1986 1986 run_program_and_log_output 1987 ("ps wax| grep buffer | grep -v \"grep buffer\"", TRUE) == 0;1987 ("ps | grep buffer | grep -v \"grep buffer\"", TRUE) == 0; 1988 1988 i++) { 1989 1989 sleep(1); -
trunk/tools/pkg2mdv
r782 r794 62 62 s=\`rpm -qlp \$p | egrep '\.spec'\` 63 63 # Use mkrel for mdv 64 perl -pi -e 's/define mrel[ \t]+([0-9]+)\..*/define mrel %mkrel \$1/'rpm/SPECS/\$s65 perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org> ([0-9]+.*)/ Bruno Cornec <bcornec@mandriva.org> %{version}-%{release}/' rpm/SPECS/\$s64 perl -pi -e "s/define Release:[ \t]+..*/define Release: %mkrel $TAG/" rpm/SPECS/\$s 65 perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org>..*/ Bruno Cornec <bcornec@mandriva.org> %{version}-%{release}/' rpm/SPECS/\$s 66 66 rm -rf rpm/BUILD/* 67 67 rpmbuild -ba rpm/SPECS/\$s 2>&1 | tee -a /tmp/mondorescue.log -
trunk/trac/trac.ini
r765 r794 1 1 [header_logo] 2 2 src = http://www.mondorescue.org/images/trac-logo.png 3 height = 120 4 width = 350 5 link = http://www.mondorescue.org 3 6 alt = Mondo Rescue 4 height = 1205 link = http://www.mondorescue.org6 width = 3507 7 8 8 [logging] … … 13 13 [trac] 14 14 default_charset = iso-8859-15 15 database = sqlite:db/trac.db 15 16 templates_dir = /usr/share/trac/templates 17 htdocs_location = /trac/ 16 18 repository_dir = /mondo/svn/mondorescue 17 htdocs_location = /trac/18 database = sqlite:db/trac.db19 19 20 20 [notification] 21 always_notify_owner = true 21 22 smtp_enabled = true 22 23 smtp_replyto = trac@svn.mondorescue.org … … 25 26 smtp_from = trac@svn.mondorescue.org 26 27 always_notify_reporter = true 27 always_notify_owner = true28 28 29 29 [project] 30 url = http://www.mondorescue.org31 footer = The <a href="http://www.mondorescue.org">Mondo Rescue</a> project is hosted <br>by the <a href="http://www.hpintelco.net">HP Intel Solution Center</a> on a <a href="http://www.mandriva.com">Mandriva</a> system.32 30 name = MondoRescue 33 31 descr = GPL disaster recovery solution 32 footer = The <a href="http://www.mondorescue.org">Mondo Rescue</a> project is hosted <br>by the <a href="http://www.hpintelco.net">HP Intel Solution Center</a> on a <a href="http://www.mandriva.com">Mandriva</a> system. 33 url = http://www.mondorescue.org 34 34 icon = /mondo/www/html/mondo/favicon.ico 35 35 … … 41 41 max_size = 262144 42 42 43 [components] 44 webadmin.* = enabled 45 acct_mgr.web_ui.registrationmodule = enabled 46 acct_mgr.web_ui.accountmodule = enabled 47 acct_mgr.htfile.htdigeststore = enabled 48 acct_mgr.api.accountmanager = enabled 49 acct_mgr.web_ui.loginmodule = enabled 50 acct_mgr.htfile.htpasswdstore = enabled 51 acct_mgr.htfile.abstractpasswordfilestore = enabled 52 43 53 [timeline] 44 54 changeset_show_files = 0 45 55 56 [account-manager] 57 password_format = htpasswd 58 password_file = /etc/trac.htpasswd 59 46 60 [diff] 47 tab_width = 861 tab_width = 4 48 62 49 63 [ticket] 50 default_version = 2.0.8 64 default_version = 2.0.9 65 default_component = mondo 66 default_milestone = 2.0.9 51 67 default_severity = normal 52 default_component = mondo53 68 default_priority = normal 54 default_milestone = 2.0.955 69 -
trunk/website/downloads.shtml
r782 r794 73 73 <ul> 74 74 <li>tarballs are available under <a href="ftp://ftp.mondorescue.org/src">ftp://ftp.mondorescue.org/src</a></li> 75 <li>Subversion browing available at <a href="http:// www.mondorescue.org/cgi-bin/trac.cgi/browser/">http://www.mondorescue.org/cgi-bin/trac.cgi/browser/</a></li>75 <li>Subversion browing available at <a href="http://trac.mondorescue.org/browser/">http://trac.mondorescue.org/browser/</a></li> 76 76 <li>Anonymous SVN Subversion check out of the project available with the following instruction set: <pre><tt>svn checkout svn://svn.mondorescue.org/mondorescue/branches/stable</tt></pre></li> 77 77 </ul> -
trunk/website/mondorescue.org.conf
r729 r794 1 # 2 # Apache Virtual Host Configuration File 3 # Replace * by IP address of the machine 4 NameVirtualHost * 1 NameVirtualHost 10.3.252.23 5 2 6 <VirtualHost *>3 <VirtualHost 10.3.252.23> 7 4 ServerName www.mondorescue.org 8 5 #ServerAlias mondorescue.org … … 14 11 RewriteRule ^/index\.html$ /index.shtml 15 12 RewriteRule ^/$ /index.shtml 13 16 14 <Directory "/mondo/www/html/mondo"> 17 15 DirectoryIndex index.shtml … … 21 19 Allow from all 22 20 </Directory> 21 23 22 <Directory "/mondo/www/cgi-bin"> 24 23 AllowOverride All … … 56 55 </VirtualHost> 57 56 58 <VirtualHost *> 57 <VirtualHost 10.3.252.23> 58 ServerName trac.mondorescue.org 59 SetEnv TRAC_ENV "/mondo/trac/mondorescue.env" 60 DocumentRoot /mondo/www/cgi-bin/trac.cgi 61 ServerAdmin webmaster@mondorescue.org 62 CustomLog /var/log/httpd/www.mondorescue.org/access_log combined 63 Errorlog /var/log/httpd/www.mondorescue.org/error_log 64 65 # fix mdk bug #16298 66 PassEnv LC_ALL 67 PassEnv LANG 68 69 <Directory "/mondo/www/cgi-bin"> 70 AllowOverride All 71 Options ExecCGI FollowSymLinks 72 Order allow,deny 73 Allow from all 74 </Directory> 75 76 Alias /trac/ "/usr/share/trac/htdocs/" 77 ScriptAlias /cgi-bin/ "/mondo/www/cgi-bin/" 78 79 # You need something like this to authenticate users 80 <Location "/login"> 81 AuthType Basic 82 AuthName "MondoRescue" 83 AuthUserFile /etc/trac.htpasswd 84 Require valid-user 85 </Location> 86 </VirtualHost> 87 88 <VirtualHost 10.3.252.23> 59 89 ServerName oldwww.mondorescue.org 60 90 ServerAdmin webmaster@mondorescue.org … … 70 100 </VirtualHost> 71 101 72 <VirtualHost *>102 <VirtualHost 10.3.252.23> 73 103 ServerName www1.mondorescue.org 74 104 ServerAdmin webmaster@mondorescue.org … … 84 114 </VirtualHost> 85 115 86 <VirtualHost *> 116 <VirtualHost 10.3.252.23> 117 ServerName mondo.hpintelco.org 118 ServerAdmin webmaster@mondorescue.org 119 DocumentRoot /var/www/html 120 CustomLog /var/log/httpd/mondo.hpintelco.org/access_log combined 121 Errorlog /var/log/httpd/mondo.hpintelco.org/error_log 122 <Directory "/var/www/html"> 123 Options -Indexes MultiViews FollowSymLinks +Includes 124 AllowOverride None 125 Order allow,deny 126 Allow from all 127 </Directory> 128 </VirtualHost> 129 130 <VirtualHost 10.3.252.23> 87 131 ServerName www.mondorescue.com 88 132 ServerAdmin webmaster@mondorescue.com -
trunk/website/support.shtml
r764 r794 19 19 </ul></p> 20 20 <p>Second look at the <a href="/docs.shtml">Mondo Rescue documentation</a> and the extensive FAQ section of the Mondo Rescue HOWTO, as a lot of good tip and tricks are provided there.</p> 21 <p>Third look at the <a href="http:// www.mondorescue.org/cgi-bin/trac.cgi/wiki">Mondo Rescue wiki</a> which may contain additional comments,and feel free to contribute by adding your remarks.</p>21 <p>Third look at the <a href="http://trac.mondorescue.org/">Mondo Rescue wiki</a> which may contain additional comments,and feel free to contribute by adding your remarks.</p> 22 22 <p>Fourth look at the <a href="http://sourceforge.net/mailarchive/forum.php?forum_id=5086">Mondo Rescue Mailing List Archives</a> as you're probably not the first with this problem.</p> 23 23 <p>Finally post on the <a href="mailto:mondo-devel_at_lists.sourceforge.net">Mondo Rescue Mailing List</a> if you did not find what you were looking for, as there are more than 400 users there who could help you, including dev team members. <b>But</b>, they can only help you if your provide at least the above mentionned <b>2 first log files</b>.</p> 24 <p>If your think you found a bug in Mondo Rescue, please <a href="http:// www.mondorescue.org/cgi-bin/trac.cgi/newticket">fill a bug report</a> and also include the log files.</p>25 <p>Likely, if you wish Mondo Rescue had your dreamed new shiny function, feel free to create an <a href="http:// www.mondorescue.org/cgi-bin/trac.cgi/newticket">feature request</a>.</p>24 <p>If your think you found a bug in Mondo Rescue, please <a href="http://trac.mondorescue.org/newticket">fill a bug report</a> and also include the log files.</p> 25 <p>Likely, if you wish Mondo Rescue had your dreamed new shiny function, feel free to create an <a href="http://trac.mondorescue.org/newticket">feature request</a>.</p> 26 26 <div class="h2-3"> 27 27 <h2>Mondo Rescue Mailing Lists</h2> -
trunk/website/top.shtml
r764 r794 36 36 <li <!--#if expr="\"$curpage\" = \"support.shtml\"" --> id="current" <!--#endif -->> 37 37 <a href="/support.shtml" title="If you need support (why it's perfect :-)" >Support</a></li> 38 <li><a href="http:// www.mondorescue.org/cgi-bin/trac.cgi/wiki/WikiStart" title="Use the Wiki" target="_blank" >Wiki</a></li>38 <li><a href="http://trac.mondorescue.org" title="Use the Wiki" target="_blank" >Wiki</a></li> 39 39 <li <!--#if expr="\"$curpage\" = \"thanks.shtml\"" --> id="current" <!--#endif -->> 40 40 <a href="/thanks.shtml" title="So many helped us. Many thanks" >Thanks</a></li>
Note:
See TracChangeset
for help on using the changeset viewer.