// One of the beauties of brackup | Light At The End Of The Tunnel One of the beauties of brackup – Light At The End Of The Tunnel

Light At The End Of The Tunnel

systems administration meanderings

One of the beauties of brackup

My friend over at openfusion has a number of tips on Brackup. One he has not covered though is the ability of Brackup to restore from a backup that has moved location or changed transport. Recently we have been migrating our backups from one set of storage to a bigger volume. In the process we changed how the backups were stored from FTP to SFTP.

So the original backup was saved using the credentials for the FTP service which now did not exist. Therefore, we needed to modify the entry stored in the backup catalogue to use the credentials of the SFTP service.

Fortunately this is easy:-

  1. Identify the brackup catalogue
  2. ensure the file is compressed run


<code>file exportp-ftp_exportp-20111201.brackup</code>



  3. 


<code>gunzip -S .brackup exportp-ftp_exportp-20111201.brackup</code>



  4. Now edit the resulting file exportp-sftp_exportp-20111201 changing the FTP credentials to SFTP
  5. Compress the file


<code>gzip -S .brackup exportp-sftp_exportp-20111201.brackup</code>

Voila it is done, and you can restore now using the new SFTP credentials.


Share

#