Lychee
Lychee copied to clipboard
[Enhancement] ... or Question - Sync Server Folders on change?
Hi,
first of all i would like to thank the team - i really love Lychee and it is exactly what i was searching for. And that is: Makeing my Lightroom Classic organized Foto Library Web available on my personal Host without any cloud... To solve that i have organized all my Pictures in a Year/Month/Event based folder structure wich i organize over all my different Cameras & my phone to have one single Folder for all the RAW and jpeg Files taken in an event (i work as a Nature Guide and have a lot of outdoor shootings).
This Folder structure is synced via rsync from my iMac to my webspace.
Importing this structure into Lychee works quite well, although it takes some time, because i have some 400gb of pictures... i did it with the commanline (artisan lychee:sync). I ran into my php timeouts... (but this is not my complaint. Its on the first big import and than it runs...
My Feature Request/Question:
Before i uploaded everything i did some day-by-day happening things i wanted to check. and the most common thing is, that i reorganize some pictures. (example: i move them from my year/month folder 2020/04 where everything is put at first by lightroom unorganized to an event - 2020/04/19-photowalk_forrest for a better organization).
What i found out when i did this to my original folder structure wich gets synced by lychee - the new folder gets created, but it stays empty, although there are in fact pictures inside (i suppose because they were already imported in another folder before).
Do you have any idea how i could solve this, or is it indeed a feature request??
Edited for clarity. I will let @d7415 work on that one as he is the one who designed the command (if I'm not wrong).
as he is the one who designed the command
Nope
It was written by me.
If you move or rename a folder and sync it, you should get a duplicate (the original one + the moved/renamed one).
The tougher part is to delete the old version on lychee. You would need to iterate over all folders and photos in the lychee db and check if the exist in the original folder.
If you want to give it a try - there's the line where the new code should be added: https://github.com/LycheeOrg/Lychee/blob/499eef635f8e019d5f7018eea27e0360c42ccdac/app/Console/Commands/Sync.php#L85
Hi tmp-hallenser,
thank you so much for your fast reply and you advice. I'm mor the experienced "user" than coder... So i really better not try to code arround in the Sync.php... ;-)
So for the moment i will try to only upload/rsync the finally organized Albums of my Lightroom-Folder-Structure and than let it be synced by Lychee.
If i do some changes my idea is to delete the folders in Lychee first and than sync the folder again.
If somebody else would be interested in this function or you want to give it a try i would for sure be willing to contribute.
Thanks a lot and stay healthy, Richy
@d7415 what is the status on that one ? Isn't this implemented by now?
@d7415 what is the status on that one ? Isn't this implemented by now?
No idea