Sunday, May 19, 2013

Setting up an SSH backup to GOSH

Question: How to properly setup an SSH backup to GOSH using LONE-TAR?
Keywords: ssh, gosh, remote
Operating Systems: ALL

 

Written Guided Step-by-Step

Important Information:
Commands below that display the GOSH Account Username as '1234', please replace with the proper username provided to you by GOSH.
If you are having issues backing up to GOSH using the IP address hostname (secure.gosh.com) please replace with IP Address: 69.43.165.5

1. Generate the SSH keys
# ssh-keygen -t dsa
Be sure to leave the pass-phrase of the DSA key blank by pressing <ENTER>
2. Upload SSH keys to GOSH
For single server setup [LINUX]:
# scp /root/.ssh/id_dsa.pub 1234®secure.gosh.com:.ssh/authorized_keys
For single server setup [SCO]:
# scp /.ssh/id_dsa.pub 1234®secure.gosh.com:.ssh/authorized_keys
For multiple server setup [LINUX]:
# cat /root/.ssh/id_dsa.pub | ssh 1234®secure.gosh.com 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'
For multiple server setup [SCO]:
# cat /.ssh/id_dsa.pub | ssh 1234®secure.gosh.com 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'
3. Now lets add the device inside LONE-TAR
# ltmenu
      Select option '9' (Device Manager)
         Select option 'A' (Add new device)
            Select option '8' (SSH Server)
               enter alias: GOSH SSH
               enter IP Address: secure.gosh.com
               enter Block Factor: 64
               enter Capacity: 2GB (SCO) | Max Size (Linux)
               enter Compression: No compression
               enter Rotation Scheme: Weekly (minimum)
               enter Remote Backup Directory: .
               enter GOSH Username: 4-digit Number provided by Lone Star Software
               enter Disaster Recovery Option: Y for Disaster Recovery | N for no Disaster Recovery
4. Test backup
# ltmenu
      type 'test' from the Main Menu

 

YouTube Videos

Title: How to setup an SSH backup to GOSH with LONE-TAR on Linux