I have a tar.gz with a full mysql database update that I can access via ftp.
This tar.gz updates daily and I would like to create a php and/or mysql connection to that ftp account that would allow me to run that large sql query on my local mysql server.
Any thoughts?
(I’m going to go out on a limb and assume you want to do this from a unix box of some kind…)
Throw this:
in a file (
update-db.shfor example) thenchmodit:then you can just:
whenever you want to download the update. Or you can throw it into a cron job (
man crontab).Edit: Added the
Oflag totarso that it extracts to stdout.