Date: 23-11-06 01:21
Get it working first. Then worry about efficiency.
> tar -cf - ~/bak/$1.mysql.dump | gzip -c >
This will do pretty much the same thing:
tar -czf ~/bak/$1_mysql_dump.tar.gz ~/bak/$1.mysql.dump
Just as easy....
then to reverse it:
tar -xzf ~/bak/$1_mysql_dump.tar.gz
and mysql -u USER DATABSE < ~/bak/$1.mysql.dump
Or something like that.