[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: scripts for back up



Title: RE: scripts for back up
tar cvf finename.tar Dir_name
gzip filename.tar
ftp -n << _EOF_
open <system_name>
user <User_name> <password>
cd <Where_you_want_to_save_tar_bundle>
put filename.tar.gz
_EOF_
 
 
-Ashok
akanodia nycsca org
Ph: (718)752-5909
PGP public key available at: http://pgp.mit.edu
 
-----Original Message-----
From: KANODIA, ASHOK
Sent: Wednesday, June 13, 2001 9:13 AM
To: 'redhat-list redhat com'
Subject: RE: scripts for back up

tar cvf finename.tar Dir_name
gzip filename.tar
ftp <system_name> << _EOF_
user <User_name> <password>
cd <Where_you_want_to_save_tar_bundle>
put filename.tar.gz
_EOF_


Make a script with these lines and you will be all set.
-Ashok



-----Original Message-----
From: hari_bhr [mailto:hari_bhr yahoo com]
Sent: Wednesday, June 13, 2001 12:53 PM
To: redhat-list redhat com
Subject: Re: scripts for back up


hi vineeta

how do u tar required file
----- Original Message -----
From: Vineeta <vineetaa seepz aptech ac in>
To: <redhat-list redhat com>
Sent: Wednesday, June 13, 2001 6:10 PM
Subject: Re: scripts for back up


> That's what i was saying.You use .netrc file
> For info on .netrc ,check man page of ftp.
> In that file,u can write the name of remote m/c ,username and password to
log
> on and also specify ftp commands.
>
> That's how i did it.And,then,i run it thru' cron.
>
> Vineeta
>
> hari_bhr wrote:
>
> > hi vinneta
> >
> > i got some scripts from other site
> > iam looking back to be done automatically
> > at time and do ftp
> >
> > ----- Original Message -----
> > From: Vineeta <vineetaa seepz aptech ac in>
> > To: <redhat-list redhat com>
> > Sent: Wednesday, June 13, 2001 5:54 PM
> > Subject: Re: scripts for back up
> >
> > > You mean u want to first tar the files and then,ftp it on to the other
> > server?
> > > In that case,
> > > Suppose you have all your files under a dir. called "test".
> > > Now,if u want to recursively put these files in a single tar ball on
to
> > the
> > > other machine,do:
> > >
> > > put directory_name.tar
> > >
> > > that's it!
> > > I used it.Works great.
> > >
> > > Cheers,
> > > Vineeta
> > >
> > >
> > > hari_bhr wrote:
> > >
> > > > hi vineeta
> > > >
> > > > i know the scripts how to upload using ftp
> > > > my question ismhow do i take required files to tar
> > > > if i would been a scripter, why would i ask here for help
> > > >
> > > > ----- Original Message -----
> > > > From: Vineeta <vineetaa seepz aptech ac in>
> > > > To: <redhat-list redhat com>
> > > > Sent: Wednesday, June 13, 2001 3:37 PM
> > > > Subject: Re: scripts for back up
> > > >
> > > > > write your own.
> > > > > man ftp.
> > > > > I don't remember the name of the file exactly,but it was something
> > like
> > > > .ftprc
> > > > > check out the man pages for ftp.
> > > > > you can use it to do any ftp process and run it thru' cron at
night.
> > > > > I used to do that.Pretty neat!
> > > > >
> > > > > give it a try.
> > > > >
> > > > > cheers,
> > > > > Vineeta
> > > > >
> > > > > hari_bhr wrote:
> > > > >
> > > > > > hi
> > > > > >
> > > > > > iam newbie for linux
> > > > > > does any one have script to take back up of some directiry and
make
> > tar
> > > > them
> > > > > > and ftp to another server at mid night
> > > > > >
> > > > > > thanks for the help
> > > > > >
> > > > > > _________________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > > > >
> > > > > > _______________________________________________
> > > > > > Redhat-list mailing list
> > > > > > Redhat-list redhat com
> > > > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Redhat-list mailing list
> > > > > Redhat-list redhat com
> > > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > > >
> > > > _________________________________________________________
> > > > Do You Yahoo!?
> > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > >
> > > > _______________________________________________
> > > > Redhat-list mailing list
> > > > Redhat-list redhat com
> > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> > >
> > >
> > > _______________________________________________
> > > Redhat-list mailing list
> > > Redhat-list redhat com
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > _______________________________________________
> > Redhat-list mailing list
> > Redhat-list redhat com
> > https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
> _______________________________________________
> Redhat-list mailing list
> Redhat-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-list


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



_______________________________________________
Redhat-list mailing list
Redhat-list redhat com
https://listman.redhat.com/mailman/listinfo/redhat-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]