Rundeck – Shell Script Backup Sonicwall

Por: Dr. Delso Bonfante | June 11, 2015

Rundeck  – Shell Script Backup Sonicwall

How to create a Rundeck Job to Backup Sonicwall over FTP.

#!/bin/bash

set variables for easy changes

user=admin
password="SW_PASSWORD"
name=$1
host=$2

load from bash

/usr/bin/expect <"
send "export preferences ftp ftp.diegoluisi.eti.br dluisi "FTP_PASSWORD" $name-$(date +%Y-%m-%d).expn"
expect -re ".*NSA 3500>"
send "exitn"
EOF

Captura de Tela 2015-06-11 às 15.24.22


LOREM

dluisi

🚀 Enthusiastic about the DevOps culture and focused on Open Source technologies, I am passionate about automation, with 20 years of experience as a SysAdmin, currently working as an SRE, always open to learning new technologies and procedures to improve every day more as a professional. 👀 I’m interested in Open Source projects (Linux, CNCF, GitOps and Tools) 📚 I’m currently increasing my skills on AWS, K8S, Python, Backstage and some automations tools like Argo (CD, Autopilot, Events, Rollouts and Workflows). 🌱 Goals: Increase my programming skills. 💞 I love old and good Rock and Roll, on weekends traveling on a Harley Davidson.