Comments (3)
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:
- Fully agree, fortunately the step
execute_clean()
only deletes the subfolderdocker
with the commandrm -rf "$WORKING_DIR/docker"
. I clarified the documentation directly in the master. - Good catch, I fixed it directly in the master.
- 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. - I'm not sure about this one yet. Right now, both
download
andinstall
require an explicitPATH
argument. The path forbackup
andrestore
is implicit and is derived from the filename in-b
.
from synology-docker.
My current proposed changes are:
- Change default directory of backups to the current directory where the script is located (
dirname $0
) - Rename
$WORKING_DIR
to$TEMP_DIR
to avoid confusion
from synology-docker.
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:
- 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. Theupdate
command clears the directory when finished too. Bothdownload
andinstall
use the$DOWNLOAD_DIR
path, which is explicitly set when calling these commands. - 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. - The directory for backup files defaults to
$PWD
instead ofdirname $0
. I thought this might work better when the script is kept in/usr/local/bin/
for instance.
from synology-docker.
Related Issues (20)
- Ensure root ownership for Docker binaries
- Ensure folder `/var/lib/docker/volumes` exists
- Allow graceful stopping of script during Docker daemon start/stop
- Support stacked parameters
- Cannot reach containers attached to user-defined bridge network HOT 17
- Folder location HOT 1
- Binaries not installed HOT 5
- Adjust update of log driver configuration HOT 8
- Known issues
- Add flag to stop containers before updating
- Store logs on disk
- Lost of connectivity after reboot HOT 10
- [BUG] After update, Docker service doesn't start. HOT 10
- New package release on synology website HOT 1
- Add support for DSM 7
- [FeatureRequest] Add nvidia-docker2 support HOT 7
- Updating to DSM 7 HOT 7
- [BUG] Docker-compose download error HOT 3
- Can't make update in DSM 7.2-64561 HOT 4
- DSM 7.1.1 (DS1813+) and Docker v24.0.6 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synology-docker.