Giter Site home page Giter Site logo

Comments (11)

adhawkins avatar adhawkins commented on June 28, 2024

Done a bit of digging, and it looks like the 'latest' files in the emborg cache directory don't include a 'size' value for the vast majority of them. I run:

emborg -c "$config" create --fast --stats
emborg -c "$config" prune --list --stats

for each emborg run. Recently, I manually ran:

emborg -v -c atom create

and this has added a 'size' entry. Does the --fast option prevent it from doing this? I can't remember why I'm using this, but I always have.

from borg-space.

adhawkins avatar adhawkins commented on June 28, 2024

Yes, it look like it's the --fast option.

I was using that to prevent it doing a check and prune after each create. I notice I have these disabled in my global settings file anyway, so this probably isn't necessary.

The question about it requiring a config file still stands. Is a config file required for borg-space? If so, what is the minimum that is required in it?

from borg-space.

KenKundert avatar KenKundert commented on June 28, 2024

Sorry about all this. When I went to confirm what you were seeing I found a number of other problems as well. This is an important lesson for me on the importance of an extensive set of regression tests. I am in the process of fixing all the issues and implementing the regression tests. The new version should be ready in a few days I would think. I really appreciate you digging in to this and reporting these problems.

I will look into seeing if I can make the size extraction work with the --fast option. If not, I will comment on it in the borg-space documentation.

In general, Emborg is written so that you should not need to run routinely with command line options. So if you find your self always needing to use a particular command line option, let me know and I will try to make it a configuration option.

from borg-space.

KenKundert avatar KenKundert commented on June 28, 2024

Oh, and when I am finished with this new version, a config file will not be needed, but the minimum config file you tried would also work.

from borg-space.

KenKundert avatar KenKundert commented on June 28, 2024

This issue should be fixed in the new version on github. Please give it a try and let me know how it works for you.

from borg-space.

adhawkins avatar adhawkins commented on June 28, 2024

Can confirm that I can now run borg-space without a config file present

from borg-space.

adhawkins avatar adhawkins commented on June 28, 2024

Are you planning an official release containing the recent fixes? I'll package it up for alpine once it's available.

from borg-space.

KenKundert avatar KenKundert commented on June 28, 2024

I have done a formal release. The latest version is now up on PyPI. Thanks for testing my code and pointing out its issues. And thanks for updating the Alpine repositories. I really appreciate all that you do.

I noticed that you run borg-space for every Emborg create run. One to record the latest size and once to graph the size history. That is no longer necessary. You can include the --record option on a graphing borg-space command.

from borg-space.

adhawkins avatar adhawkins commented on June 28, 2024

No problem regarding Alpine. I created the packages for purely selfish reasons, as I wanted a simple way to always be running the latest version.

Thanks for the pointer about running borg-space twice. Will update my configs.

from borg-space.

KenKundert avatar KenKundert commented on June 28, 2024

I have updated github with the release candidate for version 2.2. If it is not too much trouble would you please run your tests. Once you give me the okay, I will release to pypi.

from borg-space.

adhawkins avatar adhawkins commented on June 28, 2024

Just done that, passes the tests in their CI system. Will look out for an official release on github and update the Alpine package.

from borg-space.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.