how to do sbackup-restore via CLI

Asked by kasinos on 2015-02-25


I have .inc backups of around 25 and I want to restore 21st inc backup via command line and not GTK. since our server doesnt haveGTK installed. I dont see any command line options for restore procedure and the tutorials are all based on GUI and not via command line.

Please let me know the steps to restore via command line.

Best regards,

Question information

English Edit question
sbackup Edit question
No assignee Edit question
Last query:
Last reply:
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

kasinos (kasinos) said : #2

Can someone suggest a method ?

Anton (feenstra) said : #3

The low-level implementation uses tar. You will find a tar archive in each of your backup snapshot directories.
Starting with the last full backup, you should un-tar each of them in turn. If you want to restore selected files or directories, you should provide them to each instance of tar you run.

If you want to restore just a single file, you may be better of (i.e. faster) to start with the latest incremental, and go back to older ones till you find the last one that has your file.

If you want deleted files to be also deleted during restoration, you may be able to do that using command line options for tar (I'm not sure if that will actually work reliably).

I don't know the detailed tar command line options, please refer to the tar manpage for this.

Can you help with this problem?

Provide an answer of your own, or ask kasinos for more information if necessary.

To post a message you must log in.