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

[cobalt-users] Re: [Cobalt] RAQ2 - Backup HELP!!!!



I would recommend against doing it this way if any users have shell
access to the box, as your remote username and password will show if
they do a 'ps'.  If ftpbackup supports use of a .netrc file that would
be a safer way to store the passwords.

Frank

> 
> If you don't mind working with the shell and the guts of your RaQ 2,
> try ftpbackup.  It's a small utility you can find in a couple of RPM
> repositories on the net (sorry, don't remember where).  You'll have
> to compile it from the source.  Here's a script that we use to
> backup all needed files on a server to a remote ftp server (RaQ 1,
> 2, whatever):
> 
> #!/bin/bash
> 
> /bin/tar cfp - /home | gzip | /usr/local/bin/ftpbackup -h remote.ftp.server.com -u user -p password -b filename.tar.gz
> /bin/tar cfp - /etc | gzip | /usr/local/bin/ftpbackup -h remote.ftp.server.com -u user -p password -b filename2.tar.gz
> /bin/tar cfp - /var | gzip | /usr/local/bin/ftpbackup -h remote.ftp.server.com -u user -p password -b filename3.tar.gz
> /bin/tar cfp - /usr/admserv | gzip | /usr/local/bin/ftpbackup -h remote.ftp.server.com -u user -p password -b filename4.tar.gz
> /bin/tar cfp - /usr/local | gzip | /usr/local/bin/ftpbackup -h remote.ftp.server.com -u user -p password -b filename5.tar.gz
> 


--
Frank Smith                                          fsmith@xxxxxxxxxxx
Systems Administrator                               Voice: 512-374-4673
Hoover's Online                                       Fax: 512-374-4501