Forum: 

TKLBAM Restore

Todd Forsberg's picture

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

Jeremy Davis's picture

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.

Todd Forsberg's picture

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 Davis's picture

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