command line restore to new location

Asked by Christian Müller

Hello

I wonder if there is a way to do - on the command line - a restore of an existing backup to a new restore directory not specified in the backup.

I tried to check the previous questions, if this was already answered, but I did not succeed finding something.

Thanks in advance

Christian

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Germar
Solved:
Last query:
Last reply:
Revision history for this message
Best Germar (germar) said :
#1

Restore on command line is shiny new. I just wrote that 3 days ago :)
For now it is only in development branch lp:backintime and will be released with the next version.

If you want to restore e.g. your 'Documents' from the last snapshot to folder 'restore' you can run 'backintime --restore /home/<USER>/Documents /home/<USER>/restore/ 0'

here is the part from new man-page:
       --restore [WHAT [WHERE [SNAPSHOT_ID]]]
              Restore file WHAT to path WHERE from snapshot SNAPSHOT_ID. If
              arguments are missing they will be prompted. To restore to the
              original path WHERE can be an empty string '' or just press
              Enter at the prompt. SNAPSHOT_ID can be an index (starting with
              0 for the last snapshot) or the exact SnapshotID (19 caracters
              like '20130606-230501-984')

Revision history for this message
Christian Müller (grimmo-mueller) said :
#2

Thanks Germar for this very quick answer. I believe it fully answered my question. So I will wait for the upcoming version to test this new functionality.

Thanks again

Christian

Revision history for this message
Christian Müller (grimmo-mueller) said :
#3

Thanks Germar, that solved my question.