steilerDev / icloud-photos-sync

One-way sync engine for the iCloud Photos Library into the native file system
https://icps.steiler.dev/
GNU General Public License v3.0
337 stars 9 forks source link

Feature Request: Separate Config & Photo Volumes #299

Closed undaunt closed 10 months ago

undaunt commented 1 year ago

Hello,

I was wondering if the configuration portion of the tool (trust token, log file, not sure about anything else) be stored by default in a different location than /opt/icloud-photos-library essentially splitting up config and data.

The benefit here would be logging to an SSD or just another configuration location while I keep the media contents on a larger NAS array, not having to then exclude the log file specifically from snapraid, etc.

I'm testing working around the issue now by bind mounting the log file and the trust token to a different location, and I imagine I could create the same situation by explicitly declaring the trust token flag to live elsewhere, but I didn't see an option to do that with logs, only log-to-cli.

Thanks!

steilerDev commented 1 year ago

This shouldn't be too hard - let me see when I can squeeze it in.

steilerDev commented 10 months ago

I've started working on this feature request, and as always: the devil is in the details :D

While it's not difficult to implement, there are a couple of UX as well as technical considerations, that -imho- outweigh the benefits, which is why I won't be implementing this:

As you've mentioned, if this is really important to you, you can map out the .icloud-photos-sync.log file and disable the other features. Alternatively you could skip the log file and use --log-to-cli for printing the log to stdout instead of writing it to the log file.

I hope this makes sense!