Re: Browsing offline filesystems

2009-02-11 Thread Adrian Levi
2009/2/10 Dotan Cohen dotanco...@gmail.com:
 Is there a tool that I can use to browse an offline file system, ie,
 to cache it's directory structure and have it browsable? I have a
 small home network with a laptop, and often I need to know what's on
 any particular machine that is not present at the moment.

Would, cp -Rs do the job?

It would be nice if rsync had an option of transferring as symlinks
then you could use --delete to remove links you have removed in  the
source file system.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-11 Thread Dotan Cohen
 Would, cp -Rs do the job?

 It would be nice if rsync had an option of transferring as symlinks
 then you could use --delete to remove links you have removed in  the
 source file system.


Thank you, Adrian. This is exactly the conclusion that I had come to
later in the thread.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Browsing offline filesystems

2009-02-10 Thread Dotan Cohen
Is there a tool that I can use to browse an offline file system, ie,
to cache it's directory structure and have it browsable? I have a
small home network with a laptop, and often I need to know what's on
any particular machine that is not present at the moment.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Browsing offline filesystems

2009-02-10 Thread Nuno Magalhães
On Tue, Feb 10, 2009 at 10:56 AM, Dotan Cohen dotanco...@gmail.com wrote:
 Is there a tool that I can use to browse an offline file system, ie,
 to cache it's directory structure and have it browsable? I have a
 small home network with a laptop, and often I need to know what's on
 any particular machine that is not present at the moment.

Er... you can use wget and create a local cache of said directory...

HTH
Nuno Magalhães


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Dotan Cohen
 Er... you can use wget and create a local cache of said directory...


Thank you, Nuno. However, the other filesystems have tens of gigabytes
that I do not want to copy. I only want to know which files are there,
not to have the actual files themselves.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Browsing offline filesystems

2009-02-10 Thread Nuno Magalhães
 Thank you, Nuno. However, the other filesystems have tens of gigabytes
 that I do not want to copy. I only want to know which files are there,
 not to have the actual files themselves.

If you want just the names, not the content... then it would probably
be a very weird combination of ls, grep and cut, unless there's some
proggie that'll do that for you (in perl maybe?). Plus mkdir to
preserve the hierarchy, unless absolute paths suffice.

Nuno Magalhães


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Benjamin Schmidt

Nuno Magalhães wrote:

Thank you, Nuno. However, the other filesystems have tens of gigabytes
that I do not want to copy. I only want to know which files are there,
not to have the actual files themselves.


If you want just the names, not the content... then it would probably
be a very weird combination of ls, grep and cut, unless there's some
proggie that'll do that for you (in perl maybe?). Plus mkdir to
preserve the hierarchy, unless absolute paths suffice.

Nuno Magalhães




$ find specific directoryfilelist.txt

like

$ find ~/hugeDirectory/filelist.txt


generates you a textfile with a list of all files, directories (and 
special files). Should be enough. To search, use less or grep. vi could 
block your system for some minutes.


I am not aware of some caching filesystem, which only caches the 
directory structure, without the files content.



Best regards,
Benjamin Schmidt




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Dotan Cohen
 $ find specific directoryfilelist.txt

 like

 $ find ~/hugeDirectory/filelist.txt


 generates you a textfile with a list of all files, directories (and special
 files). Should be enough. To search, use less or grep. vi could block your
 system for some minutes.

 I am not aware of some caching filesystem, which only caches the directory
 structure, without the files content.


Thanks, Benjamin. This got me going on a shell script that uses find,
mkdir, and touch to recreate the file system.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Browsing offline filesystems

2009-02-10 Thread Jeff D
On Tue, 10 Feb 2009, Dotan Cohen wrote:

 Is there a tool that I can use to browse an offline file system, ie,
 to cache it's directory structure and have it browsable? I have a
 small home network with a laptop, and often I need to know what's on
 any particular machine that is not present at the moment.


One thing you could do is to copy the mlocate.db from your laptop to the
other system and do 'locate -d laptop.db foo.txt'

-- 
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Osamu Aoki
On Tue, Feb 10, 2009 at 04:11:27PM +0200, Dotan Cohen wrote:
  $ find specific directoryfilelist.txt
 
  like
 
  $ find ~/hugeDirectory/filelist.txt
 
 
  generates you a textfile with a list of all files, directories (and special
  files). Should be enough. To search, use less or grep. vi could block your
  system for some minutes.
 
  I am not aware of some caching filesystem, which only caches the directory
  structure, without the files content.
 
 
 Thanks, Benjamin. This got me going on a shell script that uses find,
 mkdir, and touch to recreate the file system.

You may want to use:

$ ls -laR
$ tree -a


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Dotan Cohen
 You may want to use:

 $ ls -laR
 $ tree -a


Thanks, I did not know about tree.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Browsing offline filesystems

2009-02-10 Thread Paul E Condon
On 2009-02-10_12:56:53, Dotan Cohen wrote:
 Is there a tool that I can use to browse an offline file system, ie,
 to cache it's directory structure and have it browsable? I have a
 small home network with a laptop, and often I need to know what's on
 any particular machine that is not present at the moment.
 
 -- 
 Dotan Cohen

The -s option in cp makes it create soft links rather than a actual
copy of leaf files. You can use this to create a pure softlink copy
of whatever structure you are interested in, and then copy this to
the other computer. You will get on the other computer, the whole
structure with each actual file represented by a broken softlink.

This is like what you might get with tree, but the visual and keystoke
interaction will be entirely the same as if you were searching on
the computer where the data really is. Except that ... you find a
broken link rather than the data. But now you know its there, and
what you need to do to get it. 

I haven't done it, but I think it will work.
Try it and let me know. I'm interested in finding out. ;-)

-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Dotan Cohen
2009/2/10 Paul E Condon pecon...@mesanetworks.net:
 On 2009-02-10_12:56:53, Dotan Cohen wrote:
 Is there a tool that I can use to browse an offline file system, ie,
 to cache it's directory structure and have it browsable? I have a
 small home network with a laptop, and often I need to know what's on
 any particular machine that is not present at the moment.

 --
 Dotan Cohen

 The -s option in cp makes it create soft links rather than a actual
 copy of leaf files. You can use this to create a pure softlink copy
 of whatever structure you are interested in, and then copy this to
 the other computer. You will get on the other computer, the whole
 structure with each actual file represented by a broken softlink.

 This is like what you might get with tree, but the visual and keystoke
 interaction will be entirely the same as if you were searching on
 the computer where the data really is. Except that ... you find a
 broken link rather than the data. But now you know its there, and
 what you need to do to get it.

 I haven't done it, but I think it will work.
 Try it and let me know. I'm interested in finding out. ;-)


Amazing , Paul. This is the command that I used:
$ cp -sR /path/to/remote/system .

And now I have the whole remote filesystem tree mirrored here. Better
yet, when the system is mounted then the links work! Thanks!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Ken Irving
On Tue, Feb 10, 2009 at 11:47:12AM -0700, Paul E Condon wrote:
 On 2009-02-10_12:56:53, Dotan Cohen wrote:
  Is there a tool that I can use to browse an offline file system, ie,
  to cache it's directory structure and have it browsable? I have a
  small home network with a laptop, and often I need to know what's on
  any particular machine that is not present at the moment.
 
 The -s option in cp makes it create soft links rather than a actual
 copy of leaf files. You can use this to create a pure softlink copy
 of whatever structure you are interested in, and then copy this to
 the other computer. You will get on the other computer, the whole
 structure with each actual file represented by a broken softlink.

But the permissions would be not useful, with all bits set, e.g.,

lrwxrwxrwx 1 ken ken 27 2009-02-10 10:04 Quote.pdf - ../Quote.pdf

Seems like this might need another step to represent the permissions
properly.

Ken
 
 This is like what you might get with tree, but the visual and keystoke
 interaction will be entirely the same as if you were searching on
 the computer where the data really is. Except that ... you find a
 broken link rather than the data. But now you know its there, and
 what you need to do to get it. 
 
 I haven't done it, but I think it will work.
 Try it and let me know. I'm interested in finding out. ;-)

-- 
Ken Irving


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Paul E Condon
On 2009-02-10_10:12:03, Ken Irving wrote:
 On Tue, Feb 10, 2009 at 11:47:12AM -0700, Paul E Condon wrote:
  On 2009-02-10_12:56:53, Dotan Cohen wrote:
   Is there a tool that I can use to browse an offline file system, ie,
   to cache it's directory structure and have it browsable? I have a
   small home network with a laptop, and often I need to know what's on
   any particular machine that is not present at the moment.
  
  The -s option in cp makes it create soft links rather than a actual
  copy of leaf files. You can use this to create a pure softlink copy
  of whatever structure you are interested in, and then copy this to
  the other computer. You will get on the other computer, the whole
  structure with each actual file represented by a broken softlink.
 
 But the permissions would be not useful, with all bits set, e.g.,
 
 lrwxrwxrwx 1 ken ken 27 2009-02-10 10:04 Quote.pdf - ../Quote.pdf
 
 Seems like this might need another step to represent the permissions
 properly.
 
 Ken

It works fine if you are the same user number on the two machines. On 
all my machines, I am user 1000, for example. If I were to install
a different distribution that starts user numbering at 500, things 
would be a mess, unless someone on the list knows a trick...

-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Browsing offline filesystems

2009-02-10 Thread Ron Johnson

On 02/10/2009 02:55 PM, Paul E Condon wrote:
[snip]


It works fine if you are the same user number on the two machines. On 
all my machines, I am user 1000, for example. If I were to install
a different distribution that starts user numbering at 500, things 
would be a mess, unless someone on the list knows a trick...




I *think*, though, that 1000 as a base for meatbag accounts is 
standard in all distros, and has been for quite a while.


--
Ron Johnson, Jr.
Jefferson LA  USA

Supporting World Peace Through Nuclear Pacification


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Browsing offline filesystems

2009-02-10 Thread Ken Irving
On Tue, Feb 10, 2009 at 01:55:13PM -0700, Paul E Condon wrote:
 On 2009-02-10_10:12:03, Ken Irving wrote:
  On Tue, Feb 10, 2009 at 11:47:12AM -0700, Paul E Condon wrote:
   On 2009-02-10_12:56:53, Dotan Cohen wrote:
Is there a tool that I can use to browse an offline file system, ie,
to cache it's directory structure and have it browsable? I have a
small home network with a laptop, and often I need to know what's on
any particular machine that is not present at the moment.
   
   The -s option in cp makes it create soft links rather than a actual
   copy of leaf files. You can use this to create a pure softlink copy
   of whatever structure you are interested in, and then copy this to
   the other computer. You will get on the other computer, the whole
   structure with each actual file represented by a broken softlink.
  
  But the permissions would be not useful, with all bits set, e.g.,
  
  lrwxrwxrwx 1 ken ken 27 2009-02-10 10:04 Quote.pdf - ../Quote.pdf
  
  Seems like this might need another step to represent the permissions
  properly.
 
 It works fine if you are the same user number on the two machines. On 
 all my machines, I am user 1000, for example. If I were to install
 a different distribution that starts user numbering at 500, things 
 would be a mess, unless someone on the list knows a trick...

I was thinking more of the permission bits than the user  group, since
the permissions of the symlinks don't reflect those of the target files.
Maybe that's not an issue, though (the OP seemed to be happy w/ your
solution).

-- 
Ken Irving


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org