WE::Export - export a WE::DB database
use WE::Export; my $r = new WE::DB ...; my $ex = new WE::Export $r; $ex->export_all;
This module provides export and import methods for the WE::DB database.
new WE::Export $rootdb. Create a new WE::Export object for the given database
$rootdb. Additional arguments (as dashed key-value pairs) will be passed to the object.
Create data dumper files of the metadata databases and store them into the directory specified by the
Tmpdir member. Data::Dumper files are created because most DBM file formats are incompatible between various systems.
Copy the content files to the
content subdirectory of the directory specified by the
Create an archive file (.tar.gz format) of both database and content. Two member variables control paths for the export:
Tmpdir specifies the temporary directory, where database and content files will be stored, and
Archive specifies the path for the generated archive file. If not specified, then reasonable defaults are chosen (using the systems default temp directory). After the creation of the archive file, the temporary directory will be deleted completely.
For the specified tar archive
$tarfile (previously created by
export_all), the content will be extracted to the directory
$destdir. The destination directory must not exist and will be created by the method.
Further arguments %args:
This module will only work on Windows with installed Archive::Tar and Compress::Zlib (this is usually true with ActivePerl). On Unix, you need the programs
Slaven Rezic - email@example.com