LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: audiobuzz . <audiobuzz@hotmail.com>
  To  : <linuxsa@linuxsa.org.au>
  Date: Tue, 19 Jun 2001 00:56:18 -0000

RE: Backup using FTP

I think the key here is that he doesn't want to have to create a local file 
or may not have the space to do so.

It may not be the most elegant method but why not use a fifo if you get 
really stuck.

ie

mkfifo /tmp/fifo
tar -czvf /tmp/fifo <backupfiles> &
ftp server
user>>
password>>
.
.
ftp>> put /tmp/fifo ./backupfiles.tar.gz

that way there is no local storage but ftp thinks its sending a local file. 
you could use 'expect' as Jim suggested to automate the ftp transfer.

Jarrad


>From: "Jim O'Halloran" <jim@kendle.com.au>
>To: "'David Drury'" <idavid@smug.adelaide.edu.au>, linuxsa@linuxsa.org.au
>Subject: RE: Backup using FTP
>Date: Tue, 19 Jun 2001 09:44:54 +0930
>
>Hi there,
>
>Apologies in advance for the HTML formatting...  Our Exchange server won't
>allow me to use anything else at the moment.
>
>You might want to have a look at "expect".  Expect provides scripting for
>programs that are normally interactive such as ftp and telnet, etc.  I've
>used expect to script telnet sessions in the past and it works like a 
>charm.
>Which means your backup job would then become a matter of writing a shell
>script to create the tarball, then call the expect script to ftp it to your
>netware server.  Expect seems to be installed by default on most Redhat
>systems I've used.
>
>Hope that helps.
>
>Jim.
>
>
>
>-----Original Message-----
>From: David Drury [mailto:idavid@smug.adelaide.edu.au]
>Sent: Monday, 18 June 2001 18:51
>To: linuxsa@linuxsa.org.au
>Subject: Backup using FTP
>
>
>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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- 
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