Forum Discussion

fLyf5_21542's avatar
fLyf5_21542
Icon for Nimbostratus rankNimbostratus
Aug 14, 2011

SFTP / SCP script to automate LTM Backup

All

 

 

Could someone help me to get a script to automate LTM backup.

 

 

Our environment doesnt allow me to use a script which uses unsecured ( eg FTP ) way of transfering files between servers; need a script which uses sftp or scp.

 

 

 

Regards

 

KM

 

 

2 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    KM

     

     

    The Devcentral Wiki page is a useful starting point - loads of great examples of scripts etc. Check out the Advanced Design & Config Wiki page:

     

     

    http://devcentral.f5.com/wiki/AdvDesignConfig.HomePage.ashx

     

     

    Examples which may be of interest:

     

     

    http://devcentral.f5.com/wiki/AdvDesignConfig.BIG-IP-10-2-backup-script-with-SCP-transfer.ashx

     

    http://devcentral.f5.com/wiki/AdvDesignConfig.BIGIPBackupScripts.ashx

     

    http://devcentral.f5.com/wiki/AdvDesignConfig.LTM_Backup_Shell_Script.ashx

     

     

    N
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Or in two lines...

     

     

    ssh user@f5mgmt b config save /config.ucs

     

    scp user@f5mgmt:/config.ucs wherever

     

     

    the creation of keypairs and config of ssh for keypair auth is left as an exercise for the student... As is replacing the (deprecated) use of bigpipe for tmsh....