Minimum version: Midgard 1.4 (Bifrost)
repligard is a commandline tool to import and export midgard resources to/from compressed XML files.
The following options are recognized:
-c <file>
Specifies the configuration file to use.
-a
Export all resources instead of a diff against last export.
The following commands are recognized:
-h
Displays a short help message.
-e <file>
Export resourses into <file>
-i <file>
Import resourses from <file>
-m
Create GUID information for all resources.
-r
Refreshes GUID information for all resources.
The format of the configuration file is described in repligard.conf, which is distributed together with repligard. Several configuration files can be specified, options specified later will override options specified earlier.
Repligard can transfer BLOBs but it needs some help from the Midgard Administrator (you):
1. BlobDir should be created with proper ownership and permissions: (as root)
# cd /home/httpd # mkdir blobs # cd blobs # mkdir -p `perl -e '$dirs = "0123456789ABCDEF"; @dirs= split(//, $dirs); foreach $l1 (@dirs) { foreach $l2 (@dirs) { print "$l1/$l2\n";}'` # chmod -R ug+srwX,o+rwX * # chown -R apache:apache *
Where 'apache' is the user under wich your Apache server is running. be sure to change this if it is different for your system.
2. You should never touch the BlobDir manually, it should be updated only by the Midgard application or Repligard.
3. BlobDir should be unique per Database: Different databases must use different BlobDirs. Sitegroups from one Database can share one BlobDir.