summaryrefslogtreecommitdiff
path: root/rdiff-backup/misc/rdiff-many-files.py
blob: aaf750a2f7ce09281fd608a6e0bc9839f2998599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

"""Run rdiff to transform everything in one dir to another"""

import sys, os

dir1, dir2 = sys.argv[1:3]
for i in xrange(1000):
	assert not os.system("rdiff signature %s/%s sig" % (dir1, i))
	assert not os.system("rdiff delta sig %s/%s diff" % (dir2, i))
	assert not os.system("rdiff patch %s/%s diff %s/%s.out" %
						 (dir1, i, dir1, i))