how to do sbackup-restore via CLI

Asked by kasinos

Hello,

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,
Kasinos

Question information

Language:
English Edit question
Status:
Answered
For:
sbackup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

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

Revision history for this message
kasinos (kasinos) said :
#2

Can someone suggest a method ?

Revision history for this message
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.