Giter VIP home page Giter VIP logo

Comments (4)

framps avatar framps commented on July 18, 2024

Fixed in 58febd1

from raspibackup.

christianTF avatar christianTF commented on July 18, 2024

Hi @framps ,
thanks for the change, but to toggle is, I think, not a good solution.
Working with command line alone will lead to an unpredictible result if -z toggles.

I'm working on a sort of web interface for raspiBackup (it's a plugin for https://github.com/mschlenstedt/Loxberry) - it does not run standalone.

If I call raspiBackup.sh by command line (cron), toggling would first need me to parse the default config to know if -z enables or disables compression. A dedicated switch would be preferable, and -z (and the default config) should be ignored on rsync backup-type.

Cool backup tool. You'll be credited in my interface when it's done.

cu, Christian

from raspibackup.

framps avatar framps commented on July 18, 2024

Hello @christianTF ,

I thought you're another raspiBackup user and didn't know you have a special use case :-)

It makes sense to be able to toggle options via commandline. That's why I immediately fixed the logic. Actually it would make sense to change the option handling in raspiBackup to be able to set or unset an option. Maybe I'll work on this at some point in time.

There is another undocumented way to override the config options: raspiBackup parses 3 config files in following sequence:

  1. /usr/local/etc/raspiBackup.conf
  2. /home/$USER/.raspiBackup.conf
  3. $PWD/.raspiBackup.conf

If you just create either (2) or (3) and insert
DEFAULT_ZIP_BACKUP=0
the parameter in (1) will be overridden and you're fine.

Let me know if this is a valid option for you. We'll find a solution for you. Don't hesitate to create new issues if there is any missing feature for you in raspiBackup. But then it will be helpful to explain your use case in more detail ;-)

Cu framp

from raspibackup.

christianTF avatar christianTF commented on July 18, 2024

Hi framp,

thanks for this info, I will check that. I think this is my solution :-)

Cu, Christian

from raspibackup.

Related Issues (20)

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.