Giter Site home page Giter Site logo

Comments (3)

markdumay avatar markdumay commented on May 26, 2024

Thanks a lot for your suggestions Hiren, I truly appreciate your feedback. I'm a fan of geeky stuff too. :-) Below my comments on your suggestions:

  1. Fully agree, fortunately the step execute_clean() only deletes the subfolder docker with the command rm -rf "$WORKING_DIR/docker". I clarified the documentation directly in the master.
  2. Good catch, I fixed it directly in the master.
  3. I agree, right now the backups are stored in the temp directory, unless a fully qualified path for the backup is specified. It would be better to store them in the current directory by default. I guess the variable name working directory is a bit confusing, as it refers to the temporary directory in reality.
  4. I'm not sure about this one yet. Right now, both download and install require an explicit PATH argument. The path for backup and restore is implicit and is derived from the filename in -b.

from synology-docker.

markdumay avatar markdumay commented on May 26, 2024

My current proposed changes are:

  1. Change default directory of backups to the current directory where the script is located (dirname $0)
  2. Rename $WORKING_DIR to $TEMP_DIR to avoid confusion

from synology-docker.

markdumay avatar markdumay commented on May 26, 2024

A new feature branch is ready, care to review?

git clone -b path https://github.com/markdumay/synology-docker.git

A summary of the key changes:

  1. The $WORKING_DIR is split into $TEMP_DIR, $BACKUP_DIR, and $DOWNLOAD_DIR. The $TEMP_DIR is now used for extracting files only and is recreated at the start of the script. The update command clears the directory when finished too. Both download and install use the $DOWNLOAD_DIR path, which is explicitly set when calling these commands.
  2. The -p option has been added, as it allows you to use auto-versioning for the backup names. However, specifying a path in the filename for the -b option implicitly works too.
  3. The directory for backup files defaults to $PWD instead of dirname $0. I thought this might work better when the script is kept in /usr/local/bin/ for instance.

from synology-docker.

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.