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
Import/export of snapshots #1910
Comments
This could also help with migrations to newer versions of the repo format. |
Very similar to #323 -- I believe the tricky part is to recompute the packs and rewrite the index. Probably doable, but a slight bit expensive (like prune). (Maybe this issue should be combined with that one.) |
Thanks for your suggestion! It feels to me this this could be achieved with a #323 is blocked at the moment by a config file, apart from the So, I'd like to close this issue for now, please subscribe over at #323 to get notified of any (eventual) progress in this area. Please feel free to add further comments, thanks! |
How do you think about a tar import? I had to untar all my old backup and than run restic for them. Wouldn't it be possibly to import a tar archive on the fly? |
@jo-so Interesting idea. But how often do you need to untar old backups to import them into restic? :) |
A |
Also I did propose #2226, which would implement a tar import of sorts. But didn't get much feedback for that unfortunately. |
Output of
restic version
restic 0.9.1 compiled with go1.10.2 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
I'm using different storages for backups: an internal repository for daily snapshots and an external disk for not so often snapshots. It would be helpful to transfer a snapshot from the internal repo to the external. So I could run
restic -r /mnt/backup export |restic -r /mnt/archive import
from time to time and save snapshots on different storages. I think it would be useful to allow options to filter the snapshot, i.e.--exclude …
I'm not sure if both commands should be combined like
restic transfer /mnt/backup /mnt/archive
, but split command would allow a transfer with ssh and maybe you could add a format option to select the tar format. This would ease the first import of backups from foreign software likerestic import --fmt tar /mnt/old/backup.tar
. The same for an export as tar.The text was updated successfully, but these errors were encountered: