Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion from rdiff-backup #350

Open
hoxu opened this issue Sep 17, 2015 · 2 comments
Open

Conversion from rdiff-backup #350

hoxu opened this issue Sep 17, 2015 · 2 comments

Comments

@hoxu
Copy link

hoxu commented Sep 17, 2015

I did not find any list of conversion utilities, is there anything for converting existing rdiff-backup repositories to attic?

@adept
Copy link
Contributor

adept commented Sep 17, 2015

I used a script like this to extract all rdiff backups one by one and back
them up using attic:

#!/bin/bash
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 [email protected]
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
#350.

Dmitry Astapov

@hoxu
Copy link
Author

hoxu commented Oct 3, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants