#1 2025-07-23 11:52:23

thegadgetman
Member
2025-07-23
2

Linking to existing photo folders for new installation

Hi,

I've just installed Piwigo on my TrueNAS box from the App store (https://apps.truenas.com/catalog/piwigo/) and mounted three host folders for the config, gallery and MariaDB storage.
Piwigo is up and running with an empty gallery so that is good news.

I have an existing local folder (TrueNAS dataset) on my NAS full of photos which I want to appear in Piwigo.

I don't want to import these photos as this will create copies on my NAS.

I saw some other posts about creating symlinks to other folders but that seemed to be link to an empty folder for gallery storage use.

Before I start breaking things - can I symlink an existing NAS folder full of photos inside the Galleries folder?
Are these folders treated as read only and all metadata is stored in the database?

Thank you.

Offline

 

#2 2025-07-23 13:37:03

erAck
Only trying to help
2015-09-06
2236

Re: Linking to existing photo folders for new installation

Yes, metadata is stored in the database and derivatives (thumbnails and view sized images) are generated under the _data/i/ directory (_data/i/galleries/ for physical albums), original image directories are not written to. Ensure the user the web server runs as has directory traversal and file read permissions in your NAS directories, then creating a symbolic link in Piwigo's galleries/ directory should work.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2025-07-23 14:47:09

thegadgetman
Member
2025-07-23
2

Re: Linking to existing photo folders for new installation

Thank you for the quick and helpful response.

I've added another mount point inside the gallery folder to avoid symlinks and it is working so problem solved, thank you.

I am getting some errors when running synchronization...

PWG-UPDATE-1: The name of directories and files must comprise only letters, numbers, "-", "_" or "."

Quite a few files have '(' and ')' in the filename - is there any way around this?

Offline

 

#4 2025-07-24 12:58:01

erAck
Only trying to help
2015-09-06
2236

Re: Linking to existing photo folders for new installation

In your local config (edit local/config/config.inc.php or use the LocalFiles Editor plugin) add an entry for $conf['sync_chars_regex'], look it up in include/config_default.inc.php (do not edit that file) and read the description for possible strategies and limitations. If it's only about the () characters then this should suffice:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.()]+$/';


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB