Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Closed Thread
 
Thread Tools
  #1  
Old 06-16-2004, 09:06 AM
abstraktMedia's Avatar
abstraktMedia abstraktMedia is offline
Junior Croc
 
Join Date: Aug 2003
Location: Ljutomer, Slovenia
Posts: 131
Default

Hi there..I managed to start the cron job on backing up database and then bzip2 it and save it to a folder...

command line looks like this

date=`date -I`; mysqldump -uUSERNAME -pPASSWORD --all-databases > /home/USERDIR/public_html/backups/backup_$date.sql;
bzip2 /home/USERDIR/public_html/backups/backup_$date.sql;
rm /home/USERDIR/public_html/backups/backup_$date.sql

and it works fine...

Now I would like to email newly created file backup_$date.sql.bz2 to me...anyone knows how to do that from the Linux command line...??

Thanx....
__________________
  #2  
Old 06-16-2004, 07:35 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Abstrakt, see if this helps any: http://www.tek-tips.com/gviewthread..../54/qid/837992
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 10:35 AM.