Backup Problem
Kevin O'Connor
kevin at ziptek-technologies.co.uk
Tue Oct 11 14:03:45 BST 2005
This is a multi-part message in MIME format.
------=_NextPart_000_0025_01C5CE6C.99157FC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Khaled
first welcome to the group and now to answer your question
scp requires that public key authentication is set up between the hosts. If
you have done this correctly then running scp in batch mode will stop the
password request
scp -B user at host:file
Hope that helps
Regards
Kevin
_____
From: freebsd-users-admin at uk.freebsd.org
[mailto:freebsd-users-admin at uk.freebsd.org] On Behalf Of Khaled Hussein
Sent: Tuesday, October 11, 2005 12:37 PM
To: freebsd-users at uk.freebsd.org
Subject: Backup Problem
Hi there, this is my first email to this group and I welcome all of you and
I hope to be your friend
Now my problem is: I am working in ISP Company and we have many server have
UNIX FreeBSD OS and I want to do backup for the web server, I run the script
that tar the files and gzip them but I face a problem on the script that
will copy the backup file from the web server to the backup server (remote),
I searched the internet about this I found many talk about "scp" command bu
the problem is this command prompt for password and the script should run
daily and automatically from crontab, so how can I do this
Please if any body has an idea I will be glade for your help
Thanks in advance
Regards
**********************************
Khaled J. Hussein
System Administrator
Palnet Communications Ltd.
http://www.palnet.com
khaled at palnet.com
Tel.02/2403434. Fax.02/2403430
**********************************
------=_NextPart_000_0025_01C5CE6C.99157FC0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.3790.327" name=3DGENERATOR><o:SmartTagType=20
downloadurl=3D"http://www.microsoft.com" name=3D"PersonName"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Monotype Corsiva;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: =
"Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; =
FONT-FAMILY: "Courier New"; TEXT-DECORATION: none; mso-style-type: =
personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Khaled </FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff=20
size=3D2> &nbs=
p; =20
first welcome to the group and now to answer your question =
</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>scp requires that public key authentication is =
set up=20
between the hosts. If you have done this correctly then running =
scp in=20
batch mode will stop the password request </FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>scp -B <A=20
href=3D"mailto:user at host:file">user at host:file</A></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hope that helps</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Regards</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D941285612-11102005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Kevin</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
freebsd-users-admin at uk.freebsd.org=20
[mailto:freebsd-users-admin at uk.freebsd.org] <B>On Behalf Of </B>Khaled =
Hussein<BR><B>Sent:</B> Tuesday, October 11, 2005 12:37 =
PM<BR><B>To:</B>=20
freebsd-users at uk.freebsd.org<BR><B>Subject:</B> Backup=20
Problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Hi there, this =
is my first=20
email to this group and I welcome all of you and I hope to be your =
friend=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Now my problem =
is: I am=20
working in ISP Company and we have many server have UNIX FreeBSD OS =
and I want=20
to do backup for the web server, I run the script that tar the files =
and gzip=20
them but I face a problem on the script that will copy the backup file =
from=20
the web server to the backup server (remote), I searched the internet =
about=20
this I found many talk about “scp” command bu the problem =
is this command=20
prompt for password and the script should run daily and automatically =
from=20
crontab, so how can I do this <o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Please if any =
body has an=20
idea I will be glade for your help <o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Thanks in =
advance=20
<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Courier New" size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p> </o:p></SPAN></FONT></P>
<P><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">Regards<o:p></o:p></SPAN></FONT></P>
<P><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: =
12pt">**********************************<BR></SPAN></FONT><STRONG><B><FON=
T=20
face=3D"Monotype Corsiva" size=3D4><SPAN=20
style=3D"FONT-SIZE: 13.5pt; FONT-FAMILY: 'Monotype Corsiva'">Khaled J. =
Hussein </SPAN></FONT></B></STRONG><BR>System=20
=
Administrator =
=20
<BR>Palnet Communications Ltd.<BR>http://www.palnet.com =
<BR><st1:PersonName=20
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: =
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"=20
tabIndex=3D0 =
w:st=3D"on">khaled at palnet.com</st1:PersonName><BR>Tel.02/2403434.=20
Fax.02/2403430 <BR>**********************************<o:p></o:p></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: =
12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML=
>
------=_NextPart_000_0025_01C5CE6C.99157FC0--
More information about the Ukfreebsd
mailing list