From f10fbec3a1f4f42cacfa94af77a24c49d7ba38a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Tue, 26 Feb 2013 13:27:54 +0100 Subject: [PATCH] Fixed compressing on db upload. --- config | 2 +- prj-upload-db.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.30.2