Giter Club home page Giter Club logo

snapbtr's People

Contributors

yvolchkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

snapbtr's Issues

Scoring mechanism example

I tried out snapbtr and the simplicity is perfect for my use case.
Every day I backup my files to a computer with a BTRFS filesystem.
Now I want to keep daily snapshots of my files as well, so I can have versioned backups.

I keep my files in /media/user/backup and snapshots in /media/user/backup_snapshots.
I'll be running this command as a daily cronjob for the root user:
snapbtr -cs /media/user/backup /media/user/backup_snapshots --target-backups 100 --preserve-days 7

It works great and I like that I can easily browse the snapshot in the default file manager.
I was even able to manually remove snapshots from the file manager, as standard user.
Is it supposed to be like that? Because you mention "Root permissions are not required for creating snapshot" but I was also able to manually remove snapshots as non root user.

Could you provide an example of how the scoring mechanism works?
With the above command (100 target backups and preserve 7 days).
What would the snapshot folder look like in one month? After 6 months, one year and two years?
I don't quite get the scoring mechanism.

I read through the code and noticed the oldest snapshot is never removed.
Is this true? In my use case I don't need the oldest snapshot to stay around forever.
So can I just manually remove it after a few months or so to free up disk space?

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.