Skip to content

Commit 732b928

Browse files
authored
Update README.md
1 parent c90a6a8 commit 732b928

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,12 @@ Cloud is mounted to a local folder (`/cloud-encrypt`). This folder is then decry
147147
A local folder (`/local-decrypt`) is created to contain local media.
148148
The local folder (`/local-decrypt`) and cloud folder (`/cloud-decrypt`) is then mounted to a third folder (`/local-media`) with certain permissions - local folder with Read/Write permissions and cloud folder with Read-only permissions.
149149

150-
Everytime new media is retrieved it needs be added to `/local-media` or directly to `/local-decrypt`.
151-
Keep in mind that if it is written and read from `/local-decrypt` it will sooner or later be removed from this folder depending on the `REMOVE_LOCAL_FILES_BASED_ON` setting. This is only removed from `/local-decrypt` and will still appear in `/local-media` because it will still be accessable from the cloud.
150+
Everytime new media is retrieved it should be added to `/local-media`.
151+
Sooner or later media is going to be removed from `/local-decrypt` depending on the `REMOVE_LOCAL_FILES_BASED_ON` setting. Media is only removed from `/local-decrypt` and still appears in `/local-media` because it would still be accessable from the cloud.
152152

153-
If `REMOVE_LOCAL_FILES_BASED_ON` is set to **space** it will only remove content, starting from the oldest accessed file and if the file is uploaded to the cloud, if local media size has exceeded `REMOVE_LOCAL_FILES_WHEN_SPACE_EXCEEDS_GB` and will only free up atleast `FREEUP_ATLEAST_GB`. If **time** is set it will only remove files older than `REMOVE_LOCAL_FILES_AFTER_DAYS` only if they are uploaded to the cloud.
153+
If `REMOVE_LOCAL_FILES_BASED_ON` is set to **space** it will only remove content (if local media size has exceeded `REMOVE_LOCAL_FILES_WHEN_SPACE_EXCEEDS_GB`) starting from the oldest accessed file and will only free up atleast `FREEUP_ATLEAST_GB`. If **time** is set it will only remove files older than `REMOVE_LOCAL_FILES_AFTER_DAYS`.
154+
155+
*Media is always uploaded to cloud before removing it locally.*
154156

155157
![UML diagram](uml.png)
156158

@@ -182,4 +184,4 @@ The reason for these permissions are that when writing to the local folder (`/lo
182184
`docker build -t cloud-media-scripts .`
183185

184186
## Test run
185-
`docker run --name cloud-media-scripts -d cloud-media-scripts`
187+
`docker run --name cloud-media-scripts -d cloud-media-scripts`

0 commit comments

Comments
 (0)