Home Print  

SGTrash Recovery
 

Deleted clients and deleted backups can be recovered from SGTrash location using command line options. Below are the details about SGTrash recovery command line parameters and examples.

Windows

bin\.exe RecoverTrashedData <SGTrashLoc> <RecoveryLevel> <RecoveryGroupName> <ParentName>

Linux

./bin/ RecoverTrashedData <SGTrashLoc> <RecoveryLevel> <RecoveryGroupName> <ParentName>


    * SGTrashLoc         -  <SGTrash_location>/1
    * RecoveryLevel      -  3 (Client Level)/4 (Backup Level)
    * RecoveryGroupName  -  Clientname/Backupname
    * ParentName         -  Clientname(Mandatory parameter for backup recovery)

NOTE : Recovered backups will be in "Deactivated State".

Recover a Client

To recover a client from SGTrash run the below command from installation location.

Windows
bin\.exe RecoverTrashedData <SGTrashLoc> 3 Client_Name

Linux
./bin/ RecoverTrashedData <SGTrashLoc> 3 Client_Name

Eg:-

    * SGTrashLoc         -  C:\SGTrah\1(for windows) and /home/SGTrash/1(for linux)
    * RecoveryLevel      -  3 (Client Level)
    * RecoveryGroupName  -  testclient(Client Name)
    

Windows
bin\.exe RecoverTrashedData C:\SGTrah\1 3 testclient

Linux
./bin/ RecoverTrashedData /home/SGTrash/1 3 testclient

By executing the above commands you can recover the testclient from the SGTrash.

Recover a backup

To recover a particular backup from SGTrash run the below command from installation location

Windows
bin\.exe RecoverTrashedData <SGTrashLoc> 4 Backup_Name Client_Name

Linux
./bin/ RecoverTrashedData <SGTrashLoc> 4 Backup_Name Client_Name

Eg:-

    * SGTrashLoc         -  C:\SGTrah\1(for windows) and /home/SGTrash/1(for linux)
    * RecoveryLevel      -  4 (Backup Level)
    * RecoveryGroupName  -  testbackup(Backup Name)
    * ParentName         -  testclient(Client name - Mandatory parameter for backup recovery)
 

Windows
bin\.exe RecoverTrashedData C:\SGTrah\1 4 testbackup testclient

Linux
./bin/ RecoverTrashedData /home/SGTrash/1 4 testbackup testclient

By executing the above commands you can recover the testbackup from the SGTrash under testclient.

Please note that recovered data from the SGTrash location are only for restore purpose. After successful restore you can delete those recovered data from the backup server using server side client delete or backup delete.

Print  
Technical support-