You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "ming@graduate.hku.hk" <mi...@graduate.hku.hk> on 2011/01/26 06:56:35 UTC

File admin on JackRabbit file system

Dear all,

It is my first time placing in this mailing list.  Not sure if I do it right.

We are now storing file on file system.  We aware that the original file name is not retained, and has been coded into different file name.  (e.g. helloworld.txt -> d5a8c7132392)  May I know
1. Is it a one-one mapping between the original file and the coded file by JackRabbit?
2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?
3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?

Thank you very much



      

AW: File admin on JackRabbit file system

Posted by "Seidel. Robert" <Ro...@aeb.de>.
Hi Ming,

Jackrabbit stores only binary data (bytes) to the data store. The file name which is automatically generated results of the hash of the binary.

If you want to store a file name at the repository, you can add a property to a node. 

To answer your questions:

1. The mapping is between the file content and the Jackrabbit file name.
2. That's not possible, because Jackrabbit doesn't have the information of the file name, it is just a binary. Store the file name as property, so you can receive the binary and the file name through Jackrabbit, but not from outside.
3. You can backup all files in the data store, they are just files in the file system. But you cannot restore helloworld.txt, because it has some different name d5a8c7132392.

Regards, Robert

-----Ursprüngliche Nachricht-----
Von: ming@graduate.hku.hk [mailto:ming@graduate.hku.hk] 
Gesendet: Mittwoch, 26. Januar 2011 06:57
An: dev@jackrabbit.apache.org; users@jackrabbit.apache.org
Cc: a9111224@yahoo.com
Betreff: File admin on JackRabbit file system

Dear all,

It is my first time placing in this mailing list.  Not sure if I do it right.

We are now storing file on file system.  We aware that the original file name is not retained, and has been coded into different file name.  (e.g. helloworld.txt -> d5a8c7132392)  May I know
1. Is it a one-one mapping between the original file and the coded file by JackRabbit?
2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?
3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?

Thank you very much



      

Re: File admin on JackRabbit file system

Posted by Thomas Mueller <mu...@adobe.com>.
Hi,

About the file data store, see http://wiki.apache.org/jackrabbit/DataStore

> one-one mapping between the original file and the coded file by JackRabbit?

No.

> 2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?

You can't.

> 3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?

It's impossible possible without the persistence data.

P.S. Please don't post to both user and dev list.

Regards,
Thomas


From: "ming@graduate.hku.hk<ma...@graduate.hku.hk>" <mi...@graduate.hku.hk>>
Reply-To: "dev@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <de...@jackrabbit.apache.org>>, "ming@graduate.hku.hk<ma...@graduate.hku.hk>" <mi...@graduate.hku.hk>>
Date: Wed, 26 Jan 2011 05:56:35 +0000
To: "dev@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <de...@jackrabbit.apache.org>>, "users@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <us...@jackrabbit.apache.org>>
Cc: "a9111224@yahoo.com<ma...@yahoo.com>" <a9...@yahoo.com>>
Subject: File admin on JackRabbit file system

 it a one-one mapping between the original file and the coded file by JackRabbit?
2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?
3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?

Re: File admin on JackRabbit file system

Posted by Thomas Mueller <mu...@adobe.com>.
Hi,

About the file data store, see http://wiki.apache.org/jackrabbit/DataStore

> one-one mapping between the original file and the coded file by JackRabbit?

No.

> 2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?

You can't.

> 3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?

It's impossible possible without the persistence data.

P.S. Please don't post to both user and dev list.

Regards,
Thomas


From: "ming@graduate.hku.hk<ma...@graduate.hku.hk>" <mi...@graduate.hku.hk>>
Reply-To: "dev@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <de...@jackrabbit.apache.org>>, "ming@graduate.hku.hk<ma...@graduate.hku.hk>" <mi...@graduate.hku.hk>>
Date: Wed, 26 Jan 2011 05:56:35 +0000
To: "dev@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <de...@jackrabbit.apache.org>>, "users@jackrabbit.apache.org<ma...@jackrabbit.apache.org>" <us...@jackrabbit.apache.org>>
Cc: "a9111224@yahoo.com<ma...@yahoo.com>" <a9...@yahoo.com>>
Subject: File admin on JackRabbit file system

 it a one-one mapping between the original file and the coded file by JackRabbit?
2. How can I recover the original file name (e.g. helloworld.txt) from the coded file name?
3. For administration purpose, our power Unix admin may need to backup and recover file from the file system directly (not through Jackrabbit).  Is it possible and how can I do it?