ftp
A Basic Shell Script for FTP
Basic FTP Shell Script for uploading files
Introduction
There are occasions where you might want to FTP data off site from a server or other host onto an FTP server
NOTE! Think a little before using FTP. It doesn't send login credentials (username / password) it an encrypted form and the data it transfers is not encrypted either. There are some security implications to using FTP as transfer protocol over public links.
#!/bin/bash
Entering an FTP username and password as well as the hostname in a URL
Sometimes it is useful to enter a username and password in a FTP URL. It is done in this format:
So if your username was "dave" and your password is "m0nkey" you would enter this string into your browser url bar. ftp://dave:m0nkey@ftpserver.com Of course I am not endorsing this as a sensible way of transfering files across the internet and entering authentication but it can be handy on the odd occasion.
username:password@ftpserver.com

Restoring an IBM HMC using FTP
Restoring an RS/6000 P Series HMC is something you might have to do in the event of hardware failure of your IBM HMC. If your machine has failed and you have received a replacement HMC unit from your vendor or IBM it would be in a factory default state (no configuration useful for your site). You would need to take a previous backup of your critical data and restore it. This guide shows you how to do it using FTP transfer method.
Backing Up IBM HMC using FTP
Backing up your RS/6000 P Series HMC or Hardware Management Console is an important part of your operational routine. This device is the Window to your P-Series. If you lose your HMC your P-Series and LPARS will continue to function however all of the lpar information will be lost and when you replace the faulty HMC (through IBM or your reseller) you will most likely find you have a blank HMC that won't 'know' about your LPAR configuration.
The example of backing up your systems uses the following:
1 X HMC version 6 release 1.2

