aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/rdiff-check.sh.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/rdiff-check.sh.erb b/templates/rdiff-check.sh.erb
new file mode 100644
index 0000000..bfb9734
--- /dev/null
+++ b/templates/rdiff-check.sh.erb
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Check rdiff backup sets.
+#
+
+BACKUP_FOLDER="<%= backupdir %>/remote"
+
+cwd="`pwd`"
+cd $BACKUP_FOLDER
+
+for set in `find -maxdepth 2 -name 'rdiff'`; do
+ echo "Checking backup set $set..."
+ rdiff-backup --list-increment-sizes $set;
+done
+
+cd $cwd