LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Jim O <jim@kendle.com.au>
To : David Drury <idavid@smug.adelaide.edu.au>
<linuxsa@linuxsa.org.au>
Date: Tue, 19 Jun 2001 09:44:54 +0930
RE: Backup using FTP
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0F854.DE623E60
Content-Type: text/plain;
charset="windows-1252"
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
------_=_NextPart_001_01C0F854.DE623E60
Content-Type: text/html;
charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: Backup using FTP</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Hi there,</FONT>
</P>
<P><FONT SIZE=3D2>Apologies in advance for the HTML formatting... =
Our Exchange server won't allow me to use anything else at the =
moment.</FONT>
</P>
<P><FONT SIZE=3D2>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.</FONT></P>
<P><FONT SIZE=3D2>Hope that helps.</FONT>
</P>
<P><FONT SIZE=3D2>Jim.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: David Drury [<A =
HREF=3D"mailto:idavid@smug.adelaide.edu.au">mailto:idavid@smug.adelaide.=
edu.au</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, 18 June 2001 18:51</FONT>
<BR><FONT SIZE=3D2>To: linuxsa@linuxsa.org.au</FONT>
<BR><FONT SIZE=3D2>Subject: Backup using FTP</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Hey there, I was wondering what script options I have =
for backing up via</FONT>
<BR><FONT SIZE=3D2>FTP.</FONT>
</P>
<P><FONT SIZE=3D2>I have a linux box needing backup and a netware =
server with the backup</FONT>
<BR><FONT SIZE=3D2>device in it (running unix services).</FONT>
</P>
<P><FONT SIZE=3D2>I'd like to do something like</FONT>
</P>
<P><FONT SIZE=3D2>tar czf - <files> | ftp server =
backupfile.tar.gz</FONT>
</P>
<P><FONT SIZE=3D2>But can't find anything in the man pages about this. =
I know NCFTP has a</FONT>
<BR><FONT SIZE=3D2>config file that'll store usernames and passwords =
which will be usefull,</FONT>
<BR><FONT SIZE=3D2>but there is still the problem of piping.</FONT>
</P>
<P><FONT SIZE=3D2>If this can't be done. Can someone make alternae =
suggestions for file</FONT>
<BR><FONT SIZE=3D2>transfer that don't involve mounting the netware =
volumes, or putting the</FONT>
<BR><FONT SIZE=3D2>backup device in the linux box. Neither of which are =
options.</FONT>
</P>
<P><FONT SIZE=3D2>cya</FONT>
</P>
<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>David Drury</FONT>
<BR><FONT SIZE=3D2> =
_______________________________________</FONT>
<BR><FONT SIZE=3D2> \ ua914299@teaching.cs.adelaide.edu.au =
\</FONT>
<BR><FONT SIZE=3D2> \ =
idavid@smug.adelaide.edu.au =
\  =
; __________ |</FONT>
<BR><FONT SIZE=3D2> \ =
Adelaide University Union =
\ / =
\___-=3DO`/|O`/___|</FONT>
<BR><FONT SIZE=3D2> =
\ IT =
Co-ordinator.  =
; \_______\ =
/ | / )</FONT>
<BR><FONT SIZE=3D2> / =
Student Machine User Group =
/ `/-=3D=3D__ _/__|/__=3D--|</FONT>
<BR><FONT SIZE=3D2> =
/ Systems =
Administrator. =
/ =
* \ | =
|</FONT>
<BR><FONT SIZE=3D2> / "Cogito cogito =
ergo cogito sum." =
/  =
; (o)</FONT>
<BR><FONT SIZE=3D2> =
/______________________________________/</FONT>
</P>
<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>LinuxSA WWW: <A HREF=3D"http://www.linuxsa.org.au/" =
TARGET=3D"_blank">http://www.linuxsa.org.au/</A> IRC: #linuxsa on =
irc.linux.org.au</FONT>
<BR><FONT SIZE=3D2>To unsubscribe from the LinuxSA list:</FONT>
<BR><FONT SIZE=3D2> mail linuxsa-request@linuxsa.org.au with =
"unsubscribe" as the subject</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0F854.DE623E60--
--
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