silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

Enhancement: ignore php notices when running the command line script #18

Closed anselmdk closed 11 years ago

anselmdk commented 11 years ago

I just installed the script, and wanted to run a backup on a VPS running the latest Plesk software, and am getting the following error: on running sspak --sudo=WEBUSER save root@MYSERVER:/var/www/vhosts/MYSITE/git-repo/public MYSITE.sspak

Connection to MYSERVER closed.
Could not parse sspak-sniffer content:
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
a:6:{s:7:"db_type";s:13:"MySQLDatabase";s:9:"db_server";s:9:"localhost";s:11:"db_username";s:13:"DBUSERNAME";s:11:"db_password";s:24:"DBPASS";s:11:"db_database";s:13:"DB";s:11:"assets_path";s:53:"/var/www/vhosts/MYSITE/git-repo/public/assets";}

I assume that by adding a flag to ignore php notices, sspak would happily have parsed the json and it would have worked...

anselmdk commented 11 years ago

This must have been due to some configuration issues on the server. I just replaced the # with ; in those 2 files, and now sspak runs, and just dumped an assets and a db file to my local system. Great tool!! I'm closing this issue.