Skip to content
Browse files

Added example of .pyvsb.conf

  • Loading branch information...
1 parent 2f2e914 commit dceaea4857a650415550b1efb30627bbe14a743f @KonishchevDmitry committed Dec 18, 2012
Showing with 42 additions and 0 deletions.
  1. +42 −0 pyvsb.conf.example
View
42 pyvsb.conf.example
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+
+"""PyVSB configuration file."""
+
+import os
+
+# Backup root
+BACKUP_ROOT = os.path.expanduser("~/backup")
+
+# Maximum number of backups per backup group
+MAX_BACKUPS = 7
+
+# Maximum number of backup groups
+MAX_BACKUP_GROUPS = 4
+
+# Trust file modify time when checking for file changes
+#TRUST_MODIFY_TIME = True
+
+# Preserve hard links information when writing backups
+#PRESERVE_HARD_LINKS = True
+
+# Backup items
+BACKUP_ITEMS = {
+ "/etc": {},
+
+ "/home/dmitry": {
+ "before": "tree -aN --dirsfirst /home/dmitry/temp > /home/dmitry/.directory_tree",
+ "after": "rm -f /home/dmitry/.directory_tree",
+
+ "filter": [
+ r"-^Downloads$",
+ r"-^rpmbuild$",
+ r"-^temp$",
+ r"-^\.cache$",
+ r"-^\.dropbox",
+ r"-^\.[eE]ncrypted$",
+ r"-^\.mozilla$",
+ r"-^\.ssh/connection-",
+ r"-^\.thunderbird$",
+ ],
+ },
+}

0 comments on commit dceaea4

Please sign in to comment.
Something went wrong with that request. Please try again.