Skip to content

Commit abf782e

Browse files
Merge pull request #135 from OctoPrint/enable-backup-restore
Enable backup restore
2 parents 042a236 + a915402 commit abf782e

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ RUN curl -fsSLO --compressed --retry 3 --retry-delay 10 \
5656

5757
WORKDIR /opt/octoprint
5858
RUN pip install .
59+
RUN mkdir -p /octoprint/octoprint /octoprint/plugins
5960

6061
# Install mjpg-streamer
6162
RUN curl -fsSLO --compressed --retry 3 --retry-delay 10 \
6263
https://github.com/jacksonliam/mjpg-streamer/archive/master.tar.gz \
6364
&& mkdir /mjpg \
6465
&& tar xzf master.tar.gz -C /mjpg
6566

67+
6668
WORKDIR /mjpg/mjpg-streamer-master/mjpg-streamer-experimental
6769
RUN make
6870
RUN make install

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ then run the following commands:
8383
docker-compose up -d config-editor
8484
```
8585

86-
Now go to `http://<octoprint_ip_or_url>:8443/?folder=/config` in your browser to edit your octoprint files!
86+
Now go to `http://<octoprint_ip_or_url>:8443/?folder=/octoprint` in your browser to edit your octoprint files!
8787
Use the 'explorer' (accessible by clicking the hamburger menu icon) to explore folder and files to load
8888
into the editor workspace.
8989

90-
All configuration files are in the `/config` folder, and the active configuration will be accessible at `/config/config.yaml`
90+
All configuration files are in the `octoprint` folder, and the active configuration will be accessible at `/octoprint/octoprint/config.yaml`
9191

9292
When you're done, we recommend you stop and remove this service/container:
9393

compose.test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ services:
2424
- GUID=0
2525
- TZ=America/Chicago
2626
volumes:
27-
- octoprint:/config
27+
- octoprint:/octoprint
2828

2929
volumes:
3030
octoprint:

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
# - GUID=0
3434
# - TZ=America/Chicago
3535
# volumes:
36-
# - octoprint:/config
36+
# - octoprint:/octoprint
3737

3838
volumes:
3939
octoprint:

root/etc/services.d/octoprint/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/with-contenv sh
22

3-
exec octoprint serve --iknowwhatimdoing --host 0.0.0.0 --basedir /octoprint
3+
exec octoprint serve --iknowwhatimdoing --host 0.0.0.0 --basedir /octoprint/octoprint

root/octoprint/config.yaml root/octoprint/octoprint/config.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ webcam:
55
ffmpeg: /usr/bin/ffmpeg
66
snapshot: http://localhost:8080/?action=snapshot
77
stream: /webcam/?action=stream
8-
plugins:
9-
_disabled:
10-
- backup

0 commit comments

Comments
 (0)