![]() See if it succeeds (it should print 10 filenames) If it fails - if you have spaces in your path, you’ll need to enclose in single quotes Run icloudpd -d -u -recent 10 -only-print-filenames -threads-num 2 If you don’t do this, everything will break. Tell your subsequent work to use that temp directory we created earlier. If your computer went to sleep at any point, you may have to ssh to your Synology again. Remember that you need to add /volume1 (or a different number if you have more than one volume) to the beginning of your path Return to the DSM web user interface but do not disconnect your terminal yetĬreate a dedicated folder for your photosĬopy the path to your folder out to a note somewhere and save it for the next step For some reason this defaults to the SMS fallback (if you’re still not using MFA on iCloud, you really should be) Two factor users will get prompted for your code. The order of this step is very important - we need to install WHEEL firstĮnter your real iCloud password when prompted - app-specific passwords do NOT work because it is the API Run the following commands in your terminal I followed this great guide to enable pip In order to install more Python packages, we need to install an up-to-date version of pip, the Python package manager Note: If you experience any disconnections after this point, re-activate your virtual environment using cd ~/icloudpd source bin/activate Navigate into that folder with cd icloudpdĪctivate the virtual environment by source bin/activate It’s recommendedĬhange to your user’s home directory by running cd ~Ĭreate a temp directory for use later by running mkdir $HOME/tmpĬreate the virtual environment using python3 -m venv icloudpd This effectively sections off the python configuration being used for this project from anything else on your Synology, making sure different work you (or DSM) does won’t impact the iCloud Photos work. The result needs to be at least 3.6 (Mine was 3.8.8 which I believe is included with DSM 7.1)Ĭreate a virtual environment in which to do all of the further work. You’ll see a slightly different command promptĬheck that it is by typing python -V into your terminal and pressing enter Make sure ‘Encrypted Terminal Service’ appears on one of the entries with an action of ‘allow’Įnter the command `ssh as in ‘ssh your synology password when prompted local)įamiliarity with ssh, the terminal in general, and other computer inner workingsĪllow SSH through your Synology firewall (only if your firewall is on) Your Synology’s local IP or domain (something like. ![]() Synology with plenty of extra storage space You probably shouldn’t empty the deleted photos folder more frequently than you run this script or it will leave photos on your Synology that you’ve removed from iCloud These instructions assume you’re using a Mac, but Windows users should be able to accomplish this with WSL (Windows Systems for Linux) terminal commands. If you’re a digital pack rat with every photo you’ve ever taken, this is for you.įor even more absurd redundancy, you can use Synology’s Glacier backup to copy your entire photo library up to AWS Glacier for cheap, offsite replication. Any cloud storage that syncs comes with a risk that all your photos could disappear suddenly - this prevents that from happening. It means your photos aren’t stored in a recognizable, hierarchical folder format and your access to the library depends on Apple continuing to offer a reliable service. Having your entire photo library in iCloud is a mild risk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |