Re: Mount dump0 as ISO9660 filesystem?

2009-12-05 Thread Jerry McAllister
On Fri, Dec 04, 2009 at 04:50:43PM -0800, Nerius Landys wrote:

> > Your dump is just a regular file sitting on a hard drive with a file
> > system that's already mounted.  If you created an on-disk ISO image of
> > that file, you'd have to mount the file system of that ISO image to read
> > the file.  If you burned the ISO image to a CD, you'd mount the CD's
> > file system to read it.  Either way, the file remains just a file, and
> > is read using restore(8).
> >
> > I'll offer a guess that you're confusing things with tar(1) (which is
> > often used for backups) and the recent changes.  From the manpage:
> >
> >This implementation can extract from tar, pax, cpio, zip, jar, ar,
> >and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and
> >shar archives.
> >
> > The above means you can now do nifty things like 'tar xvf mybackup.iso',
> > and if you've configured a pre-processor for less(1), even niftier
> > things like:
> >
> >less backup.tar.gz
> >less backup.zip
> >less backup.iso
> >
> > It's also possible you might be thinking of file system snapshots (which
> > can be mounted).  Check the Handbook for details.
> >
> 
> All I really want to do is take my dump file and see the "files"
> inside it, and do things with those files such as copy or md5sum (not
> edit).  And I don't even know which tool do use to accomplish that.
> For example, if I took a dump 0 of /usr (which I did), I would like to
> see the "file" /usr/home/nlandys/.zshrc inside the dump, and then
> actually see (read) this file and/or copy it over scp or to another
> filesystem.


Well, restore(8) is the utility intended for looking at and extracting 
files from dump files.  I don't know if you can do all those things
directly from a dump file using restore.  You may have to restore a
file to disk first and then act on that file for some of them.
But some might work.  I usually make a directory I call 'unroll'
somewhere with lots of extra space, put stuff there and work on things
from there and clean up afterwards.  But, you are welcome to experiment.

jerry



> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread Nerius Landys
> On Fri, Dec 04, 2009 at 04:50:43PM -0800, Nerius Landys wrote:
>> > Either way, the file remains just a file, and is read using
>> > restore(8).
>
> [snip]
>
>> All I really want to do is take my dump file and see the "files"
>> inside it, and do things with those files such as copy or md5sum (not
>> edit).  And I don't even know which tool do use to accomplish that.
>
> You still don't know which tool?
>

I see.  For some reason I thought restore had to actually restore all
the files, as in expand the dump into a collection of files and
directories.  I'll have a look at the man page.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread George Davidovich
On Fri, Dec 04, 2009 at 04:50:43PM -0800, Nerius Landys wrote:
> > Either way, the file remains just a file, and is read using
> > restore(8).

[snip]

> All I really want to do is take my dump file and see the "files"
> inside it, and do things with those files such as copy or md5sum (not
> edit).  And I don't even know which tool do use to accomplish that.

You still don't know which tool?

-- 
George
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread Nerius Landys
> Your dump is just a regular file sitting on a hard drive with a file
> system that's already mounted.  If you created an on-disk ISO image of
> that file, you'd have to mount the file system of that ISO image to read
> the file.  If you burned the ISO image to a CD, you'd mount the CD's
> file system to read it.  Either way, the file remains just a file, and
> is read using restore(8).
>
> I'll offer a guess that you're confusing things with tar(1) (which is
> often used for backups) and the recent changes.  From the manpage:
>
>This implementation can extract from tar, pax, cpio, zip, jar, ar,
>and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and
>shar archives.
>
> The above means you can now do nifty things like 'tar xvf mybackup.iso',
> and if you've configured a pre-processor for less(1), even niftier
> things like:
>
>less backup.tar.gz
>less backup.zip
>less backup.iso
>
> It's also possible you might be thinking of file system snapshots (which
> can be mounted).  Check the Handbook for details.
>

All I really want to do is take my dump file and see the "files"
inside it, and do things with those files such as copy or md5sum (not
edit).  And I don't even know which tool do use to accomplish that.
For example, if I took a dump 0 of /usr (which I did), I would like to
see the "file" /usr/home/nlandys/.zshrc inside the dump, and then
actually see (read) this file and/or copy it over scp or to another
filesystem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread George Davidovich
On Thu, Dec 03, 2009 at 03:27:48PM -0800, Nerius Landys wrote:
> I heard somewhere that you can mount a dump as an ISO9660 filesystem,
> but I cannot find any Google answers on this subject.  I took my dump
> in the following fashion:
> 
> dump -0Lan -C 16 -f - /usr | gzip -2 | 
> 
> So, I have a file named dump0-var.gz.

Your dump is just a regular file sitting on a hard drive with a file
system that's already mounted.  If you created an on-disk ISO image of
that file, you'd have to mount the file system of that ISO image to read
the file.  If you burned the ISO image to a CD, you'd mount the CD's
file system to read it.  Either way, the file remains just a file, and
is read using restore(8).

I'll offer a guess that you're confusing things with tar(1) (which is
often used for backups) and the recent changes.  From the manpage:

This implementation can extract from tar, pax, cpio, zip, jar, ar,
and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and
shar archives.

The above means you can now do nifty things like 'tar xvf mybackup.iso',
and if you've configured a pre-processor for less(1), even niftier
things like:

less backup.tar.gz
less backup.zip
less backup.iso 

It's also possible you might be thinking of file system snapshots (which
can be mounted).  Check the Handbook for details.

-- 
George
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Mount dump0 as ISO9660 filesystem?

2009-12-03 Thread Jerry McAllister
On Thu, Dec 03, 2009 at 03:27:48PM -0800, Nerius Landys wrote:

> I heard somewhere that you can mount a dump as an ISO9660 filesystem,
> but I cannot find any Google answers on this subject.  

I have never heard of this.
You can put a dump in an ISO, but I don't think a dump is directly
mountable.  I think you have to create the ISO with the normal
makeiso.   Then, it might be mountable.

But, I could be wrong.

jerry


> I took my dump
> in the following fashion:
> 
> dump -0Lan -C 16 -f - /usr | gzip -2 | 
> 
> So, I have a file named dump0-var.gz.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Mount dump0 as ISO9660 filesystem?

2009-12-03 Thread Nerius Landys
I heard somewhere that you can mount a dump as an ISO9660 filesystem,
but I cannot find any Google answers on this subject.  I took my dump
in the following fashion:

dump -0Lan -C 16 -f - /usr | gzip -2 | 

So, I have a file named dump0-var.gz.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"