Forum Discussion
Schedule Auto Backup of LTM UCS
DATE=date +%Y%m%d
hostname=uname -n |cut -d. -f1
tmsh save sys ucs $DATE
sleep 5
ftp -n xx.xx.xx.xx << EOF
user xxxxxx "xxxxx"
binary
cd \Users\xxxxx\Desktop\Newfolder
put "$DATE.ucs"
bye
End-Of-Session
EOF
- Senthil_7991Jan 15, 2018
Nimbostratus
Still, am having same issue, Please explain step by step.
Active:In Sync] tmp bash -x f5backup.sh
- =date +%Y%m%d f5backup.sh: line 2: =date: command not found
- hostname=uname
- -n
- cut -d. -f1 f5backup.sh: line 3: -n: command not found
- tmsh save sys ucs Syntax Error: enter ucs identifier
- ftp -n xx.xx.xx.xx
^C+ user xxxxxx xxxxxxx f5backup.sh: line 11: user: command not found + binary f5backup.sh: line 12: binary: command not found + cd usersxxxxxxdesktopnewfolder f5backup.sh: line 13: cd: usersxxxxxxdesktopnewfolder: No such file or directory + put .ucs f5backup.sh: line 14: put: command not found + bye f5backup.sh: line 15: bye: command not found + End-Of-Session f5backup.sh: line 16: End-Of-Session: command not found Active:In Sync] tmp
Active:In Sync] tmp chmod +x f5backup.sh Active:In Sync] tmp ./f5backup.sh ./f5backup.sh: line 2: +%Y%m%d: command not found ./f5backup.sh: line 3: -n: command not found Syntax Error: enter ucs identifier ^C./f5backup.sh: line 11: user: command not found ./f5backup.sh: line 12: binary: command not found ./f5backup.sh: line 13: cd: usersxxxxxdesktopnewfolder: No such file or directory ./f5backup.sh: line 14: put: command not found ./f5backup.sh: line 15: bye: command not found ./f5backup.sh: line 16: End-Of-Session: command not found Active:In Sync] tmp Active:In Sync] tmp
- wndak_159397Jan 16, 2018
Nimbostratus
DATE=`date +%Y%m%d`
hostname=`uname -n |cut -d. -f1`
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com