Is there a way to run FTP Synchronization from the CLI? #739

Closed
opened 2026-10-05 00:15:00 +02:00 by adam · 3 comments
Owner

I'm looking for a way to have images automatically sync to Piwigo when I upload them to my NAS. I can mount a directory from the NAS onto the box running Piwigo, but I still have to click Synchronize in the admin interface.

I'd like to trigger Synchronize via either a cronjob or inotify trigger, but I can't seem to find a way to do that. Perhaps tools/piwigo_remote.pl holds the key?

Thanks for any advice!

I'm looking for a way to have images automatically sync to Piwigo when I upload them to my NAS. I can mount a directory from the NAS onto the box running Piwigo, but I still have to click Synchronize in the admin interface. I'd like to trigger Synchronize via either a cronjob or inotify trigger, but I can't seem to find a way to do that. Perhaps `tools/piwigo_remote.pl` holds the key? Thanks for any advice! <!-- github-sync-id:280780944 -->
adam closed this issue 2026-10-05 00:15:00 +02:00
Author
Owner

It would be nice to have a CLI for Piwigo, but we don't. There is no "sync" method in Piwigo web API neither. But it doesn't mean you can't find a workaround. See this old forum topic http://piwigo.org/forum/viewtopic.php?pid=110429#p110429

And instead of searching it again in the future, I add it in Piwigo as tools/remote_sync.pl

It would be nice to have a CLI for Piwigo, but we don't. There is no "sync" method in Piwigo web API neither. But it doesn't mean you can't find a workaround. See this old forum topic http://piwigo.org/forum/viewtopic.php?pid=110429#p110429 And instead of searching it again in the future, I add it in Piwigo as tools/remote_sync.pl <!-- github-comment-id:351962302 -->
Author
Owner

I have found this, which I will probably be testing soon: https://github.com/pommes-frites/piwigo-scripts.

I have found this, which I will probably be testing soon: https://github.com/pommes-frites/piwigo-scripts. <!-- github-comment-id:379795092 -->
Author
Owner

Still need that in 2026

Still need that in 2026 <!-- github-comment-id:3766174171 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#739