cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Linux File System restore using Backup Exec

RiyasHussain
Level 4

Hi All,

We are trying restoration of linux files using BackupExec command line BEMCLI.

Is it possible to restore linux files using command line of BackuExec?

Please share some working example so that it will be helpful for reference.

Thanks and Regards

Riyas Hussain A

7 REPLIES 7

VJware
Level 6
Employee Accredited Certified

Have a look @ the Submit-BEFileSystemRestoreJob cmdlet.

The BEMCLI guide contains the syntax and few examples as well of this cmdlet. BEMCLI Help - https://support.symantec.com/en_US/article.DOC8212.html

RiyasHussain
Level 4

Hi,

Thanks for your reply. We looked into that. the issue is it doesnt show any example how to use it for linux. Only for windows they have given example.

We need to know how to specify linux path etc.

Thanks and Regards

Riyas Hussain A

VJware
Level 6
Employee Accredited Certified

Linux path is specified using a / whereas Windows uses \.

Try a test restore and if it fails, post the command which you have used.

EDITED

I believe, BEMCLI support for Linux is added with FP1 for Be 15 and there is a new cmdlet "Submit-BELinuxMacRestoreJob". Try using this cmdlet & if this doesn't work, then the cmdlet provided in the first reply should.

RiyasHussain
Level 4

I tried with with following commands.

Get-BEAgentServer ${SourceClient} | Submit-BELinuxMacRestoreJob -FileSystemSelection /  -PointInTime "7/20/2015 11:00:04 AM" -OverwriteExistingFile Yes

Error : The term ‘Submit-BELinuxMacRestoreJob’ is not recognized as the name of a cmdlet, function, script file, or operable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

 

${SourceClient} : is the linux server which has backup

and 

Get-BEAgentServer ${SourceClient} | Submit-BEFileSystemRestoreJob -FileSystemSelection /  -PointInTime "7/20/2015 11:00:04 AM" -OverwriteExistingFile Yes

Error : Submit-BEFileSystemRestoreJob : FileSystemSelection is not a valid parameter for the specified agent server type.

 

${SourceClient} : is the linux server which has backup

 

VJware
Level 6
Employee Accredited Certified

Is your BE 15 updated with FP1 ?

If not, update it and then retry running the BEMCLI cmdlets.

pkh
Moderator
Moderator
   VIP    Certified

I just download the BEMCLI Guide and the Submit-BELinuxMacRestoreJob cmdlet is not documented there.

VJware
Level 6
Employee Accredited Certified

@ pkh I suspect the BEMCLI guide available online isn't updated yet. Open the BEMCLI Help from \Program Files\Symantec\Backup Exec directory on a BE 15 FP1 media server and the BEMCLI documents the Submit-BELinuxMacRestoreJob cmdlet.

@RiyasHussain

First make sure FP1 is applied. Download the update from this link - https://support.symantec.com/en_US/article.TECH228725.html

Then the cmdlet will work and here are couple of examples from the BEMCLI Help -

Example 1

C:\PS> Get-BEJob "Job 0001" | Get-BEJobHistory -FromLastJobRun | Submit-BELinuxMacRestoreJob -LinuxMacSelection /root/BackupUpData/*.*

These commands restore a directory named /root/BackupUpData from the most recent backup set for a job named "Job 0001".


Example 2
C:\PS> Get-BEAgentServer myserver.mycompany.com | Submit-BELinuxMacRestoreJob -LinuxMacSelection /root/BackupUpData/*.*

These commands restore a directory named /root/BackupUpData from the most recent backup set for a server named "myserver.mycompany.com".