TurnKey Linux Virtual Appliance Library

TKLBAM Restore

I found articles (or topics) discussing how to limit what is backed up, but how do I restore only a particular folder?

Jeremy's picture

I haven't used it

So you might have to have a little play to get it to work as desired. Have a look at the docs here. Looks to me like the --limits switch should do what you want.

Hmmm....  Ok. Suppose the

Hmmm....  Ok.

Suppose the folder I want to restore is:  "/srv/storage"

How do I construct the restore command?  

This looks pretty easy, but I'm confused on the syntax to use here.

 

 

--limits=LIMITS: Restore filesystem or database limitations

LIMITS := " LIMIT -1 .. LIMIT -N"
LIMIT := -?( /path/to/include/or/exclude | 

Jeremy's picture

I'm only guessing...

But reading from the yntax I'd say that to just restore /srv/storage you'd use something along the lines of

tklbam-restore --limits=/srv/storage

or if you wanted everything but /srv/storage then you'd use (note the '-')

tklbam-restore --limits=-/srv/storage

But to be sure perhaps test in a VM.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)