BadRdiffDir
From RdiffBackupWiki
I have a cronjob that says this:
'''/15 ''' ''' ''' * rdiff-backup /var/www/html /var/www/html-backup
It worked great, for about 2 months. Then I started getting this:
Fatal Error: Bad rdiff-backup-data dir on destination side The rdiff-backup data directory /var/www/html-backup/rdiff-backup-data exists, but we cannot find a valid current_mirror marker. You can avoid this message by removing this directory; however any data in it will be lost.
The problem was caused by an empty file that went missing (due to lack of disk space, or reboot, or god knows what).
The solution:
touch /var/www/html-backup/rdiff-backup-data/current_mirror.2004-02-29T00 :13:23-08:00.data
5/27/08
Confirmed this solution with Rdiff-backup version 1.04 (I'm not sure if newer versions fix this issue).
Seems like touching any date will work - Rdiff just wants a file named "current_mirror..." in that dir - meaning you can copy and paste the above file name.
1) Delete or move everything from the rdiff-backup-data folder in question 2) touch current_mirror.2004-02-29T00:13:23-08:00.data 3) Run you backup again (or wait for cron to kick in)
