Open hoxu opened 9 years ago
I used a script like this to extract all rdiff backups one by one and back them up using attic:
set -e for inc in ./photos/rdiff-backup-data/increments.*.dir ; do f=$(basename $inc) name=${f%%.dir} name=${name##increments.} if [ -f ./photos.status/$name ] ; then echo "@@@ Already processed: $name" else echo "@@@ Processing: $name" echo "@@@ Extracting $f" rdiff-backup --force ${inc} /volume1/photos echo "@@@ Archiving $name" attic create -v --stats \ ./photos.attic::${name}\/volume1/photos \ | tee -a ./photos.status/$name.log touch ./photos.status/$name fi done
Note that I did not try to preserve archive creation time, but otherwise this script worked like a charm.
On Thu, Sep 17, 2015 at 7:09 PM, Heikki Hokkanen notifications@github.com wrote:
I did not find any list of conversion utilities, is there anything for converting existing rdiff-backup repositories to attic?
— Reply to this email directly or view it on GitHub https://github.com/jborg/attic/issues/350.
Dmitry Astapov
FWIW, I started working on a script that is able to incrementally convert rdiff-backup increments into attic archives: https://github.com/hoxu/rdiff-backup2attic
Perhaps the README could have a section "How to convert from other backup systems" and link to it?
I did not find any list of conversion utilities, is there anything for converting existing rdiff-backup repositories to attic?