![]() LAST="last" INC="-link-dest=$TARGET/$LAST" MOUNT="/bin/mount" FGREP="/bin/fgrep" SSH="/usr/bin/ssh" My backup rsync script looks like the following (adjust this for your needs): I ended up with this directory structure: Within that folder we place the files of our application. I’ll use RSyncSSH so it’ll be located at /shares/public/RSyncSSH/ Goto your Public folder and create a folder. In order to build the app, we need a working folder first. Start new container with direct shell access:ĭocker run -it -name="helloworld_build" -v /shares/Public/helloworld:/helloworld ubuntu:14.04 /bin/bashĭocker rmi ubuntu:14.04 5. If something does not work or you screwed things up, it’s good to know at least these simple commands to get an overview: Installing Docker base image on My Cloud EX2100, EX4100 and Mirror - Gen 2ĭocker pull armv7/armhf-ubuntu:14.04 4. Installing Docker base image on My Cloud DL2100 and DL4100: Now before you can create an app, you need to install the base image. Type:įor EX2 devices, it’ll probably display armv7. Once connected, first check the docker version installed on the machine. You can use any SSH client such as Putty.Go to the admin dashboard and open Settings → Network.Check for details about how to develop apps for the WD Cloud Devices. We need to develop the custom app on the WD device itself, because it has limited capabilities and that way we can spot issues a bit better. I used a WD M圜loudMirror Gen2 here, but I’m sure this script can also be used for other models.Īll custom apps are built with Docker, a virtualization software that keeps every application in it’s own little container with it’s own Operating System - yes. I’ll give a little intro how to build this custom app that uses RSA keys to connect to the remote server and uses rsync to download all backup files from the server to your local WD Cloud device. This way it persists all settings across reboots and firmware updates and it seems like the only valid option to achieve this. Once done, the script will display a short report about number of successful and unsuccessful permissions changes.Had the same task to solve and ended up with creating a little custom WD-App that can be installed on the cloud device.The script does not add any new permissions if the files or folders already have "FullAccess" permission for the TargetUser, regardless of this permission being explicit or inherited.The script does not change any inheritance flags.remove all explicit "Deny" permissions for the folder grant the current user FullAccess to the folder If the script cannot list files in the directory, it will:. ![]()
0 Comments
Leave a Reply. |