Fixed compressing on db upload.
authorRafał Długołęcki <kontakt@dlugolecki.net.pl>
Tue, 26 Feb 2013 12:27:54 +0000 (13:27 +0100)
committerRafał Długołęcki <kontakt@dlugolecki.net.pl>
Tue, 26 Feb 2013 12:27:54 +0000 (13:27 +0100)
config
prj-upload-db.pl

diff --git a/config b/config
index 5617098d1cc28319f8f99ed39b56a7dfa218fdf1..185e38296b3a58712e3cb646cb2b76267b596eeb 100644 (file)
--- 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
index d49479ccdadcc097b3e65e130b88f6503ad0490c..d670c15c51c8b34bafa0424d1fe76f98ab4df81b 100755 (executable)
@@ -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";