vishnupanati / memcached-php-backup-restore

Save / Restore data from Memcache to File

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

memcached-php-backup-restore

Save / Restore data from Memcache to File and vice versa !

I have wrote this little script to allow me Restart memcache server without loosing data.

So i dump all the memcache data in file, restart memcache and restore the data from the saved file.

PS : Data saved as array serialized in file ! if you store binary data it won't be restored.

###Usage example

Example Usage : php m.php -h 127.0.0.1 -p 112112 -op restore
-h : Memcache Host address ( default is 127.0.0.1 )
-p : Memcache Port ( default is 11211 )
-op : Operation is required !! ( available options is : restore , backup )
-f : File name (default is memcacheData.txt)

About

Save / Restore data from Memcache to File

License:GNU Lesser General Public License v3.0


Languages

Language:PHP 100.0%