Replies: 4 comments 1 reply
-
Since you are running icloudpd in docker, then your command will be Note that docker is like a virtual machine with its own filesystem, so you have to map your local (==host) file system to internal docker filesystem: Just to decrypt docker commands above: |
Beta Was this translation helpful? Give feedback.
-
I got the docker image running on my Synology as a scheduled task which every 2 hours:
First pull the image with Docker UI on Synology. (I'll assume the reader knows how to do this.) Then create a script
Then make script executable with Then SSH into your NAS and run the script once to make sure it works.
If prompted for iCloud 2FA proceed but if you mounted cookies path properly it should run without prompting next time. Go to Synology settings and create the scheduled task to run whenever you would like. In the "User defined script" box type Notes:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I do it meanwhile like this. 1.) Set up a "permanent docker" with latest version (or version I want). Run this docker "manual" and setup cookies and keyring. 2.) I schedule in synlogy task planer only: docker start icloud In the script i use the paramter i want. From my point of view it's not needed to always check for new docker release and download. Even if a new version is available you might need to adjust the parameter. From time to time I check what new features have been deployed and then i setup an new "permanent docker" |
Beta Was this translation helpful? Give feedback.
-
current 1.23.4 can run as headless daemon ( |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm an absolute new-be to all of this.
I already managed to install the docker and run the following statement successfully in the termial.
icloudpd --directory /icloud/media --folder-structure {:%Y/%Y-%m} --username '[email protected]' --password 'password' --recent 500 --auto-delete
so far so good.
Now I would like to run it from time to time via a sh script using the task planner of my Synology NAS.
I created an sh file containing (similar as advised in readme file)
1.)docker pull icloudpd/icloudpd
2.)docker run -it --rm --name icloudsync
3.)icloudpd/icloudpd:latest
4.)icloudpd --directory /icloud/media --folder-structure {:%Y/%Y-%m} --username '[email protected]' --password 'password' --recent 500 --auto-delete
Now I'm getting the following error:
invalid reference format
the input device is not a TTY
/volume1/docker/icloud/Copy.sh: line 3: icloudpd/icloudpd:latest: No such file or directory
/volume1/docker/icloud/Copy.sh: line 4: icloudpd: command not found
What do i need to do?;
Will it automatically create a new docker container? Or open my existing one, called icloudsync (icloudpd/icloudpd:latest)
Or need the docker always run?
Thanks for a detailed guidance ;)
Max
Beta Was this translation helpful? Give feedback.
All reactions