Sync environments (config, metadata fields, user groups, ...)

16 views
Skip to first unread message

Jelle Sebreghts

unread,
Jun 12, 2026, 5:47:16 AM (7 days ago) Jun 12
to ResourceSpace
Has anyone figured out how you can sync only config, not content, between environments?

A lot of config lives in config.php, but stuff like user groups, metadata fields etc live in the database afaik. Is there some sort of script available that lets you backup or sync only data that can be considered config between databases/environments. You could do a full sync of the database, but that means you'd also have to sync all files. In our case we're talking about terrabytes of files, that I'd rather not duplicate on a staging environment.

Trond Helge Rolland

unread,
Jun 15, 2026, 2:31:34 AM (4 days ago) Jun 15
to ResourceSpace
This is just a theory, but I think you can get away with copying the database, the config.php and then run remove_missing_files.php (under pages/tools/) on the new/blank copy which should remove from the database all references to files no longer in the filestore. 

Jelle Sebreghts

unread,
Jun 15, 2026, 3:14:02 AM (4 days ago) Jun 15
to ResourceSpace

Thanks! I didn't know about the remove_missing_files script. That's a good starting point at least. I just wonder how long that would need to run, considering we're talking about 1.000.000+ resources.
Op maandag 15 juni 2026 om 08:31:34 UTC+2 schreef Trond Helge Rolland:
Reply all
Reply to author
Forward
0 new messages