Blog Archive (.bar) What can you do with it?

Wondering what can be done with a Blog Archive (.bar) file.

Bar files appear to be much larger exports than (.wxr) and I wondered if they could possibly be imported into wordpress.

I’m asking because I seldom have success importing into Wordpress, the images are never copied over to the new blog, they are simply links back to the original image.

Blog Archive is mostly useful as a backup right now, because it has all your photos. I’d love to see a WordPress plugin to support it but there isn’t one yet that I know about.

WXR by design only has the post text, and WordPress is supposed to download any referenced images and store them inside Wordpress during import. That’s what Micro.blog does and I’m pretty sure WordPress used to do that.

I have tried to use the backup-function. I did not receive an e-mail, but got the error message: Error publishing your microblog: "Error building site: failed to render pages: render of “home” failed: “layouts/index.html:68:5”
Can you check please, what’s going wrong. How could I get rid of the error and how could I make it deliver the .bar-file? Thanks a lot!

Do you have a custom theme? It’s pointing to something wrong in your theme layouts that’s causing your site to not build.

Yes, I do have tried a custom theme based on Manton’s Alpin. But as I see it, I do not have made any additional changes so far. How to get it repaired to get a at least a backup with all my images. Thanks a lot.

Can you go to your theme, edit it, and show us what’s in your layouts/index.html file? Without seeing it, I can’t help diagnose what is broken in that template.

Thanks for investigatinon, jsonbecker!

{{ define “main” }}

    {{ if or .IsHome .Site.Params.paginate_categories }}
    {{ $paginator := .Paginate (where .Site.Pages.ByDate.Reverse “Type” “post”) }}
    {{ $list := $paginator.Pages }}
    {{ range $list }}
    {{ partial “post-item.html” . }}
    {{ end }}
    {{ else }}
    {{ $list := where .Site.Pages.ByDate.Reverse “Type” “post” }}
    {{ range $list }}
    {{ partial “post-item.html” . }}
    {{ end }}
    {{ end }}

{{ if .IsHome }}
{{ if .Site.Params.paginate_home }}
{{ partial “pagination” . }}
{{ end }}
{{ else if .Site.Params.paginate_categories }}
{{ partial “pagination” . }}
{{ end }}

{{ end }}

Can you check Micro.blog ? That looks identical to the stock Alpine theme and doesn’t even have a line 68 where something could have gone wrong.

I so far I haven’t changed anything tho the stock Alpine theme. That’s why I don’t understand, what is going wrong with the .bar-backup.
By the way: If I would start a full rebuild now, the error message seems to go away and log looks fine (as me beginner would say.

I would try to request your export again then.

I have sent a backup request, but never received the mentioned e-Mail. Instead I do have the error-message again.

@manton : Would you mind to check what is going on here? I have tried serveral times, but I am stuck now. Thanks a lot.

I finally figured this out. When creating the archive of your blog, Micro.blog actually disables your theme because the archive essentially has its own theme. But the “Recommendations for Alpine” plug-in assumes that the post-item.html file is there.

I’m going to fix Micro.blog to better detect this and not run that plug-in template. I should have it ready to go today and will manually run the archive on your blog.