Skip to content

vishnupanati/memcached-php-backup-restore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%