From: Rafał Długołęcki Date: Tue, 26 Feb 2013 12:27:54 +0000 (+0100) Subject: Fixed compressing on db upload. X-Git-Tag: 0.1~7 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=f10fbec3a1f4f42cacfa94af77a24c49d7ba38a7;p=prj-utils.git Fixed compressing on db upload. --- diff --git a/config b/config index 5617098..185e382 100644 --- a/config +++ b/config @@ -1,5 +1,5 @@ remote_user = USER -remote_host = rdlugoleck.unixstorm.org +remote_host = some.host remote_dir = remote_db_name = DB_NAME diff --git a/prj-upload-db.pl b/prj-upload-db.pl index d49479c..d670c15 100755 --- a/prj-upload-db.pl +++ b/prj-upload-db.pl @@ -17,7 +17,7 @@ print "Dumping Local DB...\n"; `mysqldump -C -u$config{local_db_user} -p$config{local_db_pass} $config{local_db_name} > $config{remote_db_name}.sql`; print "Compressing DB...\n"; -`tar -xzvf $config{remote_db_name}.tar.gz`; +`tar -czvf $config{remote_db_name}.tar.gz $config{remote_db_name}.sql`; # upload db print "Uploading DB...\n";