"elyob" <newsprofile DeleteThis @hotmail.com> wrote in message
news:JxdNa.1071$lh6.7420039@news-text.cableinet.net...
>
> "David Dorward" <dorward DeleteThis @yahoo.com> wrote in message
> news:be3n8r$9ho$2$8300dec7@news.demon.co.uk...
> > elyob wrote:
> >
> > > I'm looking to backup all my files on a remote server via FTP and
wonder
> > > if anyone has any idea what software allows me to backup the entire
> > > directory?
> >
> > Most ftp software allows it. I'm fond of ncftp client
<http://ncftp.com/>,
> > which has ncftpget and ncftpput making it easy to write shell scripts to
> > handle uploading and downloading in the background.
> >
>
> That is exactly it ... fantastic. I can also write a php script that will
do
> command line backups .. great. Thanks a lot!
>
> Now, can I do something similar with my MySQL database?!
I have a cron job (every night, 1 am) run a shell script "backup.sh" which
does something like this.... saves everything into a nicely packed .tgz
file
watch out for line wrapping in the dump command. it should all be on one
line
#!/bin/sh
mysqldump -uMYSQLUSERNAME -pPASSWORD --opt DATABASE >
/home/delaware/public_html/backups/BACKUPFILE.SQL
cd /home/delaware/public_html/backups
tar -czf data.tgz *.sql
rm *.sql
--
Jerry
<a style='text-decoration: underline;' href="http://www.whatevah.com" target="_blank">www.whatevah.com</a> / jerry at whatevah dot com
(spambait uce DeleteThis @ftc.gov )<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Remote FTP backup