Re: [Bacula-users] Exclude file contents

2009-01-19 Thread Alan Brown
On Mon, 12 Jan 2009, Stefan Sorin Nicolin wrote:

 I have yet another exclusive configuration need. I'd like to back up a
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/
 tty12 takes a lot of useless space.

Why are you backing up /dev/ at all? Isn't it a devfs on Gentoo?




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-19 Thread John Drescher
On Mon, Jan 19, 2009 at 11:41 AM, Alan Brown a...@mssl.ucl.ac.uk wrote:
 On Mon, 12 Jan 2009, Stefan Sorin Nicolin wrote:

 I have yet another exclusive configuration need. I'd like to back up a
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/
 tty12 takes a lot of useless space.

 Why are you backing up /dev/ at all? Isn't it a devfs on Gentoo?



It has been replaced by udev a few years ago (2.6.13 kernel). I assume
that he disabled the bacula option not to cross filesystem boundaries.

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-19 Thread Kevin Keane
Unless you have a very odd version of Linux, the terminal output is NOT 
stored there. It's a device file. In fact, backing it up would actually 
be dangerous to your health (or at least your system's health) because 
on restore, you would end up deleting a device and replacing it with an 
ordinary file. Unless bacula was smart enough to remember the major and 
minor node numbers etc. - but why would it do that?

These device non-files are essential for the survival of a Unix system 
- in fact, bacula itself probably need it already in place to access 
your tape drive or hard disk - and are automatically installed every 
time you boot your operating system.

Don't touch it, and do not, ever, back it up.

And if you do have ordinary files in /dev? Move them elsewhere. I don't 
even know if it is possible to put ordinary files there.

So the real question is: why does /dev/tty12 appear to take up a lot of 
space? Could you type this command and post the output:

ls -lah /dev/tty12

Mine looks like this:

crw--w 1 root tty  4, 12 Dec  6 05:01 /dev/tty12

The c means it's a character device, not a file And the 4, 12 means: 
major node 4, minor node 12.


Stefan Sorin Nicolin wrote:
 Hi,

 I have yet another exclusive configuration need. I'd like to back up a  
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/ 
 tty12 takes a lot of useless space. The terminal output is stored  
 there - somethig that I can very well live without in case I have to  
 restore a system from backup.
 The only way I can imagine it right now is to exclude the file  
 completely and create a dedicated restore jobdef where /dev/tty12 is  
 created per runscript directive. This doesen't feel right though.
 Any ideas?

 Thanks much.

 Stefan Sorin Nicolin
 http://nicolinux.org

 ---
 Unix guy, Mac head, Rails wannabe,
 iPhone Dev-ious, Computer Science
 alumnus, usability guesspert and
 overall big time visionary


 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread Stefan Sorin Nicolin
Thank you for your responses.
Somehow I get the feeling that excluding a single file's contents is  
way easier than risking a failed restore. Since I don't mind the few  
MBs in /dev (except the hunderts of MBs in /dev/tty12) I'll submit a  
feature request regarding this issue. Who knows - it might be useful  
for other scenarios too.

Stefan


On 13.01.2009, at 00:39, John Drescher wrote:

 Have you tested a restore? If you are restoring to 'baremetal',  
 then you
 might actually need something in /dev before udev starts, which is  
 a bit
 tricky as it's 'under' udev...

 Not necessarily.  If you're doing a baremetal restore, you already  
 have to
 have to boot some minimum OS before you can run the fd anyway.   
 What I have
 done several times is this:

 - boot a plain old fedora rescue CD
 - copy the fd binaries, config files, and diskinfo scripts onto it
 - recreate the partition tables and filesystems using the diskinfo  
 scripts
 - mount the new partitions on /restore
 - done a full restore with where = /restore
 - reinstall the boot load
 - reboot into the newly restored system

 Since the boot scripts are designed to come up with an empty /dev  
 and populate
 it at runtime, all you have to do is make sure the /dev/ directory  
 exists.


 In gentoo, I believe its possible to boot a live cd (or sysrescuecd
 http://www.sysresccd.org/Beta-x86)  install bacula on tempfs and get
 it to restore to a real harddrive without installing the OS first.

 I have not tested that though.

 John

 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


Stefan Sorin Nicolin
http://nicolinux.org

---
Unix guy, Mac head, Rails wannabe,
iPhone Dev-ious, Computer Science
alumnus, usability guesspert and
overall big time visionary


Stefan Sorin Nicolin
http://nicolinux.org

---
Unix guy, Mac head, Rails wannabe,
iPhone Dev-ious, Computer Science
alumnus, usability guesspert and
overall big time visionary


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread John Drescher
On Tue, Jan 13, 2009 at 7:22 AM, Stefan Sorin Nicolin
r...@nicolinux.org wrote:
 Thank you for your responses.
 Somehow I get the feeling that excluding a single file's contents is way
 easier than risking a failed restore. Since I don't mind the few MBs in /dev
 (except the hunderts of MBs in /dev/tty12) I'll submit a feature request
 regarding this issue. Who knows - it might be useful for other scenarios
 too.


You can easily exclude a single file. That is in the documentation.

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread Stefan Sorin Nicolin

On 13.01.2009, at 13:48, John Drescher wrote:

 On Tue, Jan 13, 2009 at 7:22 AM, Stefan Sorin Nicolin
 r...@nicolinux.org wrote:
 Thank you for your responses.
 Somehow I get the feeling that excluding a single file's contents  
 is way
 easier than risking a failed restore. Since I don't mind the few  
 MBs in /dev
 (except the hunderts of MBs in /dev/tty12) I'll submit a feature  
 request
 regarding this issue. Who knows - it might be useful for other  
 scenarios
 too.


 You can easily exclude a single file. That is in the documentation.

What I ment was excluding the _contents_ of a file. I want to keep  
everything else (filname, permissions and so on).

Stefan



 John

 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


Stefan Sorin Nicolin
http://nicolinux.org

---
Unix guy, Mac head, Rails wannabe,
iPhone Dev-ious, Computer Science
alumnus, usability guesspert and
overall big time visionary


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread John Drescher
 What I ment was excluding the _contents_ of a file. I want to keep
 everything else (filname, permissions and so on).


Just exclude that file totally. I guarantee gentoo will not care as I
have booted many times in gentoo using my home made live cds without
/dev/tty12


John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread John Drescher
 And also /dev/tty12 on my system is not a large file just a device node.

 jmd0 john # ls -al /dev/tty12 -al
 crw--- 1 root root 4, 12 Jan 13 08:09 /dev/tty12


One more comment about this.

Do you have console output when you hit  ctrl-alt-f12

if you do not I see the problem. The problem is that at some point you
did not have a /dev/tty12 and that syslog-ng is writing to a file
instead of sending the console messages to the console that you get
when pressing ctrl-alt-f12

To fix this.

stop syslog-ng

/etc/init.d/syslog-ng stop

jmd0 john # /etc/init.d/syslog-ng stop
syslog-ng |* Stopping syslog-ng...

Then kill it to make sure it has quit (it did not on my system):
jmd0 john # pkill syslog-ng

then delete /dev/tty12
jmd0 john # rm /dev/tty12

Then create /dev/tty12 again
jmd0 john # mknod /dev/tty12 c 4 12


Then restart syslog-ng
jmd0 john # /etc/init.d/syslog-ng restart
syslog-ng |* Starting syslog-ng...

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread John Drescher
On Tue, Jan 13, 2009 at 8:08 AM, John Drescher dresche...@gmail.com wrote:
 What I ment was excluding the _contents_ of a file. I want to keep
 everything else (filname, permissions and so on).


 Just exclude that file totally. I guarantee gentoo will not care as I
 have booted many times in gentoo using my home made live cds without
 /dev/tty12


And also /dev/tty12 on my system is not a large file just a device node.

jmd0 john # ls -al /dev/tty12 -al
crw--- 1 root root 4, 12 Jan 13 08:09 /dev/tty12

# emerge --info
Error during set creation: Redefinition of set 'qt-split' (sections:
'kde sets', 'kde crazy sets')
Error during set creation: Redefinition of set 'plasmoids' (sections:
'kde sets', 'kde crazy sets')
Error during set creation: Redefinition of set 'koffice-2' (sections:
'kde sets', 'kde crazy sets')
Portage 2.2_rc20 (default/linux/amd64/2008.0, gcc-4.3.2,
glibc-2.8_p20080602-r1, 2.6.26.8-openvz-ext4-tickless-dirty x86_64)
=
System uname: 
linux-2.6.26.8-openvz-ext4-tickless-dirty-x86_64-intel-r-_core-tm-2_quad_cpu_q95...@_2.83ghz-with-glibc2.2.5
Timestamp of tree: Tue, 13 Jan 2009 08:05:01 +
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python: 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
dev-util/cmake:  2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.1-r1
sys-apps/sandbox:1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS=amd64
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-march=core2 -O2 -pipe
CHOST=x86_64-pc-linux-gnu

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread Stefan Sorin Nicolin
Thanks for the pointer.
I see this behavior an 20+ virtualized Gentoo installations (XEN  
domains). I'll chech it.

Stefan

On 13.01.2009, at 14:26, John Drescher wrote:

 And also /dev/tty12 on my system is not a large file just a device  
 node.

 jmd0 john # ls -al /dev/tty12 -al
 crw--- 1 root root 4, 12 Jan 13 08:09 /dev/tty12


 One more comment about this.

 Do you have console output when you hit  ctrl-alt-f12

 if you do not I see the problem. The problem is that at some point you
 did not have a /dev/tty12 and that syslog-ng is writing to a file
 instead of sending the console messages to the console that you get
 when pressing ctrl-alt-f12

 To fix this.

 stop syslog-ng

 /etc/init.d/syslog-ng stop

 jmd0 john # /etc/init.d/syslog-ng stop
 syslog-ng |* Stopping syslog-ng...

 Then kill it to make sure it has quit (it did not on my system):
 jmd0 john # pkill syslog-ng

 then delete /dev/tty12
 jmd0 john # rm /dev/tty12

 Then create /dev/tty12 again
 jmd0 john # mknod /dev/tty12 c 4 12


 Then restart syslog-ng
 jmd0 john # /etc/init.d/syslog-ng restart
 syslog-ng |* Starting syslog-ng...

 John


Stefan Sorin Nicolin
http://nicolinux.org

---
Unix guy, Mac head, Rails wannabe,
iPhone Dev-ious, Computer Science
alumnus, usability guesspert and
overall big time visionary


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-13 Thread John Drescher
On Tue, Jan 13, 2009 at 10:10 AM, Stefan Sorin Nicolin
bac...@nicolinux.org wrote:
 Thanks for the pointer.
 I see this behavior an 20+ virtualized Gentoo installations (XEN domains).
 I'll chech it.


Oh. In the visualized guests you should disable the output to the
console instead. I had to do that with openvz.

Edit the /etc/syslog-ng/syslog-ng.conf

so that the following lines are commented out:

#destination console_all { file(/dev/tty12); };

#destination console_all { file(/dev/console); };

#log { source(src); destination(console_all); };

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread Bruno Friedmann
Stefan Sorin Nicolin wrote:
 Hi,
 
 I have yet another exclusive configuration need. I'd like to back up a  
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/ 
 tty12 takes a lot of useless space. The terminal output is stored  
 there - somethig that I can very well live without in case I have to  
 restore a system from backup.
 The only way I can imagine it right now is to exclude the file  
 completely and create a dedicated restore jobdef where /dev/tty12 is  
 created per runscript directive. This doesen't feel right though.
 Any ideas?
 
 Thanks much.
 
 Stefan Sorin Nicolin
 http://nicolinux.org
 
As /dev is populate by udev I always exclude it completely .

-- 

 Bruno Friedmann


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread Arno Lehmann
Hi,

12.01.2009 19:36, Stefan Sorin Nicolin wrote:
 Hi,
 
 I have yet another exclusive configuration need. I'd like to back up a  
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/ 
 tty12 takes a lot of useless space. The terminal output is stored  
 there - somethig that I can very well live without in case I have to  
 restore a system from backup.
 The only way I can imagine it right now is to exclude the file  
 completely and create a dedicated restore jobdef where /dev/tty12 is  
 created per runscript directive. This doesen't feel right though.
 Any ideas?

Do you have to back up the /dev tree at all? Today, most linuxes I 
know create its contents automatically on bootup, or single devices as 
they are added (think hald and udev).

Arno

 Thanks much.
 
 Stefan Sorin Nicolin
 http://nicolinux.org
 
 ---
 Unix guy, Mac head, Rails wannabe,
 iPhone Dev-ious, Computer Science
 alumnus, usability guesspert and
 overall big time visionary
 
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread John Drescher
On Mon, Jan 12, 2009 at 1:36 PM, Stefan Sorin Nicolin
bac...@nicolinux.org wrote:
 Hi,

 I have yet another exclusive configuration need. I'd like to back up a
 file _without_ it's contents. I noticed that under Gentoo Linux /dev/
 tty12 takes a lot of useless space. The terminal output is stored
 there - somethig that I can very well live without in case I have to
 restore a system from backup.
 The only way I can imagine it right now is to exclude the file
 completely and create a dedicated restore jobdef where /dev/tty12 is
 created per runscript directive. This doesen't feel right though.
 Any ideas?


Use the option to not descend into other filesystems to not backup /dev at all.

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread James Harper
 Stefan Sorin Nicolin wrote:
  Hi,
 
  I have yet another exclusive configuration need. I'd like to back up
a
  file _without_ it's contents. I noticed that under Gentoo Linux
/dev/
  tty12 takes a lot of useless space. The terminal output is stored
  there - somethig that I can very well live without in case I have to
  restore a system from backup.
  The only way I can imagine it right now is to exclude the file
  completely and create a dedicated restore jobdef where /dev/tty12 is
  created per runscript directive. This doesen't feel right though.
  Any ideas?
 
  Thanks much.
 
  Stefan Sorin Nicolin
  http://nicolinux.org
 
 As /dev is populate by udev I always exclude it completely .
 

Have you tested a restore? If you are restoring to 'baremetal', then you
might actually need something in /dev before udev starts, which is a bit
tricky as it's 'under' udev...

If you are planning on doing a base install and then restoring over the
top then you shouldn't have this problem.

James


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread John Drescher
On Mon, Jan 12, 2009 at 6:03 PM, James Harper
james.har...@bendigoit.com.au wrote:
 Stefan Sorin Nicolin wrote:
  Hi,
 
  I have yet another exclusive configuration need. I'd like to back up
 a
  file _without_ it's contents. I noticed that under Gentoo Linux
 /dev/
  tty12 takes a lot of useless space. The terminal output is stored
  there - somethig that I can very well live without in case I have to
  restore a system from backup.
  The only way I can imagine it right now is to exclude the file
  completely and create a dedicated restore jobdef where /dev/tty12 is
  created per runscript directive. This doesen't feel right though.
  Any ideas?
 
  Thanks much.
 
  Stefan Sorin Nicolin
  http://nicolinux.org
 
 As /dev is populate by udev I always exclude it completely .


 Have you tested a restore? If you are restoring to 'baremetal', then you
 might actually need something in /dev before udev starts, which is a bit
 tricky as it's 'under' udev...

This should be enough:

[ ! -c /dev/null ]  rm /dev/null
[ ! -c /dev/null ]  mknod /dev/null c 1 3

#These are for builds that require a random number generator
[ ! -c /dev/random ]  mknod /dev/random c 1 8
[ ! -c /dev/urandom ]  mknod /dev/urandom c 1 9

#This is for initially populating the /dev folder. Without this
populated I could not boot the installed system.
[ ! -e /dev/console ]  mknod /dev/console c 5 1
[ ! -e /dev/tty ]  mknod /dev/tty c 5 0
[ ! -e /dev/tty0 ]  mknod /dev/tty0 c 4 0
[ ! -e /dev/tty1 ]  mknod /dev/tty1 c 4 1
[ ! -e /dev/tty2 ]  mknod /dev/tty2 c 4 2
[ ! -e /dev/tty3 ]  mknod /dev/tty3 c 4 3
[ ! -e /dev/tty4 ]  mknod /dev/tty4 c 4 4
[ ! -e /dev/tty5 ]  mknod /dev/tty5 c 4 5
[ ! -e /dev/tty6 ]  mknod /dev/tty6 c 4 6
[ ! -e /dev/tty7 ]  mknod /dev/tty7 c 4 7
[ ! -e /dev/tty8 ]  mknod /dev/tty8 c 4 8
[ ! -e /dev/tty9 ]  mknod /dev/tty9 c 4 9
[ ! -e /dev/tty10 ]  mknod /dev/tty10 c 4 10
[ ! -e /dev/tty11 ]  mknod /dev/tty11 c 4 11
[ ! -e /dev/tty12 ]  mknod /dev/tty12 c 4 12

BTW, this is what I use to generate gentoo systems from stage3 builds
using metro.

http://wiki.github.com/funtoo/metro

or my fork of metro:

http://wiki.github.com/drescherjm/metro


John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread Frank Sweetser
James Harper wrote:
 Stefan Sorin Nicolin wrote:
 Hi,

 I have yet another exclusive configuration need. I'd like to back up
 a
 file _without_ it's contents. I noticed that under Gentoo Linux
 /dev/
 tty12 takes a lot of useless space. The terminal output is stored
 there - somethig that I can very well live without in case I have to
 restore a system from backup.
 The only way I can imagine it right now is to exclude the file
 completely and create a dedicated restore jobdef where /dev/tty12 is
 created per runscript directive. This doesen't feel right though.
 Any ideas?

 Thanks much.

 Stefan Sorin Nicolin
 http://nicolinux.org

 As /dev is populate by udev I always exclude it completely .

 
 Have you tested a restore? If you are restoring to 'baremetal', then you
 might actually need something in /dev before udev starts, which is a bit
 tricky as it's 'under' udev...

Not necessarily.  If you're doing a baremetal restore, you already have to 
have to boot some minimum OS before you can run the fd anyway.  What I have 
done several times is this:

  - boot a plain old fedora rescue CD
  - copy the fd binaries, config files, and diskinfo scripts onto it
  - recreate the partition tables and filesystems using the diskinfo scripts
  - mount the new partitions on /restore
  - done a full restore with where = /restore
  - reinstall the boot load
  - reboot into the newly restored system

Since the boot scripts are designed to come up with an empty /dev and populate 
it at runtime, all you have to do is make sure the /dev/ directory exists.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
 GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Exclude file contents

2009-01-12 Thread John Drescher
 Have you tested a restore? If you are restoring to 'baremetal', then you
 might actually need something in /dev before udev starts, which is a bit
 tricky as it's 'under' udev...

 Not necessarily.  If you're doing a baremetal restore, you already have to
 have to boot some minimum OS before you can run the fd anyway.  What I have
 done several times is this:

  - boot a plain old fedora rescue CD
  - copy the fd binaries, config files, and diskinfo scripts onto it
  - recreate the partition tables and filesystems using the diskinfo scripts
  - mount the new partitions on /restore
  - done a full restore with where = /restore
  - reinstall the boot load
  - reboot into the newly restored system

 Since the boot scripts are designed to come up with an empty /dev and populate
 it at runtime, all you have to do is make sure the /dev/ directory exists.


In gentoo, I believe its possible to boot a live cd (or sysrescuecd
http://www.sysresccd.org/Beta-x86)  install bacula on tempfs and get
it to restore to a real harddrive without installing the OS first.

I have not tested that though.

John

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users