jrestore help

85 views
Skip to first unread message

troyd1

unread,
Sep 23, 2024, 4:26:20 PM9/23/24
to jBASE
I am having a lot of trouble trying to restore an item in a file and other aspects of using jrestore.  I referred the the documentation here, but not a lot of examples, so things are not clear.
Say I have backup file /tmp/backup
FIrst, what is the syntax to restore /jbase/files/testfile to locate /tmp/restore?
next, what is the the syntax to restore /jbase/files/testfile testitem to the same file.

All I can find is the -h and -i options which use regex.

I am actually able to get the to work using the -H and -I options if I create a file with the file and item in it.  There must be an easy way to just say restore file and item.

Please advise and thanks in advance for any help.

Also, is there more documentation other than this?  
file:///C:/Users/L702X/Downloads/jbase_v5_8_jrestore_2024-09-23-15-21-14.pdf


Mazen Sultan

unread,
Sep 24, 2024, 4:44:05 PM9/24/24
to jb...@googlegroups.com

Use the following command after being in the destination directory:
jrestore -f /jbase/files/testfile


--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/fc154128-c63e-45cb-baf7-b7a97b8cbf7en%40googlegroups.com.

troyd1

unread,
Sep 24, 2024, 4:52:27 PM9/24/24
to jBASE
Thanks for the reply, but that does not answer what I am looking for.

the -f is for the backup file which in my example was /tmp/backup.  I want to restore hash file /jbase/files/testfile to locatation /tmp/restore

I had tried something like jrestore -f /tmp/backup -c"/jbase/files/testfile  /tmp/restore"  but that does not work.

jrestore is a disappointing function based on the documentation.

It should be very simple to restore a hashed file to an alternate directory.  Maybe it is, but the documentation does not show you how.  Very few examples.

It should also be very easy to restore a file and/or and item in a file without needing to figure out regex using the -h and -i.  Why can't there be a simple option with the filename and item id like if you use the -H and -I commands?  Those work, but you need to edit files to do it.

Joshua Camacho

unread,
Sep 24, 2024, 6:31:08 PM9/24/24
to jb...@googlegroups.com
I have this from my notes from a previous project. You can use the -c parameter to change the path. Note, this is a "find-and-replace" concept, to be sure what you are replacing is unique.

jrestore -c"/old/file/path /new/filepath" 



Reply all
Reply to author
Forward
0 new messages