MatthieuBizien / roam-to-git

Automatic RoamResearch backup to Git
MIT License
550 stars 133 forks source link

Repo is larger than 100 mb, and this seems to break roam-to-git #116

Closed Etyre closed 1 year ago

Etyre commented 1 year ago

Describe the bug

My roam-to-git stopped working working because I've exceeded the maximum file size of 100 mb. The edn file, in particular, is too big. The script would terminate with an error.

Screenshot 2023-08-22 at 11 45 15 AM

I set up Git Large File Storage for the repo that I'm backing up to, but that doesn't seem to have solved the problem. The script does run successfully now, but it hasn't made any commits to my repo over the past month. (I've made lots of changes on my roam, so there should be plenty of commits.) I don't know if that's because of the original file-too-big problem or because Git Large File Storage broke something.

What do I do? Has anyone run into this problem before?

Please complete the following information:

MatthieuBizien commented 1 year ago

Hi @Etyre, you will not be able to save your edn file anymore due to the Github limits.

You can use the --format option to skip the edn.

Etyre commented 1 year ago

Can you elaborate, or link me to documentation? What do you mean skip the edn?

https://inboxwhenready.org/?utm_campaign=signature&utm_medium=email&utm_source=signature I'm using Inbox When Ready https://inboxwhenready.org/?utm_campaign=signature&utm_medium=email&utm_source=signature to protect my focus.

On Tue, Sep 19, 2023 at 5:17 AM Matthieu Bizien @.***> wrote:

Hi @Etyre https://github.com/Etyre, you will not be able to save your edn file anymore due to the Github limits.

You can use the --format option to skip the edn.

— Reply to this email directly, view it on GitHub https://github.com/MatthieuBizien/roam-to-git/issues/116#issuecomment-1725400508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRVT3HKUSPDD2HN3ZF24KTX3GENFANCNFSM6AAAAAA32LLQTU . You are receiving this because you were mentioned.Message ID: @.***>

-- I check my email once a day, most days, but sometimes as infrequently as once a week. I am slower to respond when I am traveling or teaching at workshops.

MatthieuBizien commented 1 year ago

The documentation is here: https://github.com/MatthieuBizien/roam-to-git/blob/2381924739a6f848165c483d6d0a2af3cdca1916/roam_to_git/__main__.py#L60-L65

You can remove the edn from your github action. Eg in https://raw.githubusercontent.com/MatthieuBizien/roam-to-git-demo/master/.github/workflows/main.yml, replace roam-to-git --skip-git . --formats json markdown formatted edn by roam-to-git --skip-git . --formats json markdown formatted