Code Monkey home page Code Monkey logo

Comments (3)

zertrin avatar zertrin commented on August 16, 2024

I think that the possibility to specify the config file to use on the command line enables already the possibility to have such a backup strategy:

  • create(/copy) one config file per folder which should be backuped in a different backup set
  • in your cronjob, call the script by passing each time a different config file

For example (in the cronjob):

test -x /path/to/duplicity-backup/duplicity-backup.sh || exit 0
/path/to/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup.foo.conf --backup
/path/to/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup.bar.conf --backup
/path/to/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup.foobar.conf --backup

Not sure if it's worth to embed such a system in the script logic when it's already simple to do it through config files... Moreover, such a work (of creating different config files) would usually be made once by the user (before the first backup), so I don't think that's such a hassle to do it like that.

I'm still open to counter-arguments and implementation suggestions ;)

from duplicity-backup.sh.

zertrin avatar zertrin commented on August 16, 2024

oops, sorry for the close/open, was discovering Github's issues mobile app...

from duplicity-backup.sh.

jaltek avatar jaltek commented on August 16, 2024

np ;)
I think this issue can be closed anyway. I didn't think of handling this by using separate config files - which isn't indeed a hassle to do it.

from duplicity-backup.sh.

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.