]> git.decadent.org.uk Git - dak.git/blobdiff - tools/dsync-0.0/doc/examples/dsync.conf
Added another tool used in dak (and placed nowhere else), dsync
[dak.git] / tools / dsync-0.0 / doc / examples / dsync.conf
diff --git a/tools/dsync-0.0/doc/examples/dsync.conf b/tools/dsync-0.0/doc/examples/dsync.conf
new file mode 100644 (file)
index 0000000..76139fe
--- /dev/null
@@ -0,0 +1,55 @@
+/* This dsync configuration file is a sample that contains all options.
+   It is not ment to be used as is.
+*/
+
+/* Each module has a set of configuration parameters. The module to use
+   is specified on the command line. */
+module::Foo 
+{
+   // The base directory for the module
+   Root "/home/ftp/foo";
+   
+   // Here we specify options that control generation of the file list
+   FileList
+   {
+      // Generation options
+      MD5-Hashes "yes";
+      Hard-Links "yes";
+      Permissions "yes";
+      Ownership "yes";
+      Ordering "depth";
+      
+      /* The filter list. Items excluded by this filter are not inclued
+         in the file list */
+      Filter 
+      {
+         "+ *";
+      };
+      
+      /* The prefer filter list. Items included in the filter are prefered
+         over items exclued in this filter. This effects the order directories
+        are listed. All directories included by the filter are listed before 
+        any directories exclued  by the filter. The filter only matche
+        directories, not files. */
+      Prefer-Filter
+      {
+         "+ *";
+      };
+
+      // Use the specified pre-generated file list, relative to the root,
+      PreGenerated "dsync.list";
+   };
+   
+   // Here we specify options specific to the dsync-flist program
+   FList
+   {
+      /* This filter is used for archive maintinance, files Excluded by 
+         this filter are removed from the archive, directories are never
+        passed through */
+      Clean-Filter
+      {
+         "- core";
+         "+";
+      };
+   };
+};