LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Jason Tan <jason@rebel.rebel.net.au>
  To  : David Drury <idavid@smug.adelaide.edu.au>
  Date: Mon, 18 Jun 2001 19:25:19 +0930 (CST)

Re: Backup using FTP

Try something like:


echo -e "user <username> <password>\n cd <somedir> \n put <tarball> \n" | ftp -n <remotehost>

Or you can lose the "-n" and rely on the ftp client's autologon if it has
one, using the .netrc file.

This works for whatever the ftp client is on RH6.1 and presumably
other FTP clients will be able to take input from stdin..or at least some
of them will - presumably.

Jason

On Mon, 18 Jun 2001, David Drury wrote:

> Hey there, I was wondering what script options I have for backing up via
> FTP.
> 
> I have a linux box needing backup and a netware server with the backup
> device in it (running unix services).
> 
> I'd like to do something like
> 
> tar czf - <files> | ftp server backupfile.tar.gz
> 
> But can't find anything in the man pages about this. I know NCFTP has a
> config file that'll store usernames and passwords which will be usefull,
> but there is still the problem of piping.
> 
> If this can't be done. Can someone make alternae suggestions for file
> transfer that don't involve mounting the netware volumes, or putting the
> backup device in the linux box. Neither of which are options.
> 
> cya
> 
> -- 
> David Drury
>    _______________________________________
>    \ ua914299@teaching.cs.adelaide.edu.au \
>     \    idavid@smug.adelaide.edu.au       \                __________ |
>      \     Adelaide University Union        \        / \___-=O`/|O`/___|
>       \        IT Co-ordinator.              \_______\        / | /     )
>       /    Student Machine User Group        /      `/-==__ _/__|/__=--|
>      /       Systems Administrator.         /         *      \  |      |
>     /   "Cogito cogito ergo cogito sum."   /                  (o)
>    /______________________________________/
> 
> -- 
> LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
>   mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
> 

--
------------------------------------------------------------------------------
Jason Tan                                                jason@rebel.net.au
     "Democracy is two wolves and a lamb voting on what to have for lunch. 
                 Liberty is a well-armed lamb contesting the vote."
                               ~Benjamin Franklin, 1759
------------------------------------------------------------------------------

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page