TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)
Copies the database
public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Parameters:
path

Path to where to copy the database. The user running the remote database must have a write access to the directory.

Returns:

This method returns the current object and throws TokyoTyrantException on failure.

Examples:
TokyoTyrant::copy() example
<?php
$tt = new TokyoTyrant("localhost", 1978);
$tt->copy("/tmp/foobar.tct");
?>

See also:

TokyoTyrant::restore() -

doc_php
2016-02-24 16:18:47
Comments
Leave a Comment

Please login to continue.