How/Where to setup staticsync cron job?

525 views
Skip to first unread message

Alan Pater

unread,
Apr 23, 2014, 10:21:21 PM4/23/14
to resour...@googlegroups.com
I am running Ubuntu Linux and need to know exactly how to setup the staticsync cron job.

Can someone with it working share their exact configuration?


Alan Pater

unread,
Apr 25, 2014, 12:26:29 PM4/25/14
to resour...@googlegroups.com
I can share what I tried, and what does NOT work is creating a file in /etc/cron.d with the following:

# run staticsync every 10 minutes
*/10 * * * *  www-data php5 /usr/share/nginx/html/resourcespace/pages/tools/staticsync.php

David Mac (new)

unread,
May 8, 2014, 3:19:31 AM5/8/14
to resour...@googlegroups.com
Hi Alan

You need to create a script that does a cd to the tools folder, and then runs static sync .. i.e.

cd /usr/share/nginx/html/resourcespace/pages/tools/
php5 staticsync.php

And then call that script from cron.

I hope that helps.

Regards

David

Alan Pater

unread,
May 20, 2014, 6:16:52 PM5/20/14
to resour...@googlegroups.com
Ok, I have created /etc/cron.hourly/RSstaticsync.sh

#!/bin/sh
cd /usr/share/nginx/html/resourcespace/pages/tools/
php5 staticsync.php

And: sudo chmod 755 /etc/cron.hourly/RSstaticsync.sh

But no go. Nothing in the designated folder gets into RS.

Allison Stec

unread,
May 21, 2014, 7:35:58 AM5/21/14
to ResourceSpace
Are there any error messages that result from running the script manually?

You've probably already looked at this page (or something similar), but it's a good reference:

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com


--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alan Pater

unread,
May 21, 2014, 10:42:17 AM5/21/14
to resour...@googlegroups.com
No error when running it manually:

user@resourcespace:/usr/share/nginx/html/resourcespace/pages/tools$ sudo php5 staticsync.php
Preloading data......done. Looking for changes...Processing Folder: /home/user/DAM
Processing file: /home/user/DAM/DwC-SampleImage_1024x768.jpg
Processing file: /home/user/DAM/2004_300x300.jpg
Processing file: /home/user/DAM/habla_160x160.jpg
Processing file: /home/user/DAM/2010_140x140.jpg
...done.
Looking for deleted files......Complete

But not exactly desirable results either. No thumbnails are created in RS, and if I manually run staticsync.php again, it duplicates every file.

Allison Stec

unread,
May 21, 2014, 11:52:32 AM5/21/14
to ResourceSpace
Can you post your staticsync configuration?

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com


Alan Pater

unread,
May 21, 2014, 1:02:45 PM5/21/14
to resour...@googlegroups.com
$syncdir="/home/user/DAM";

$nogo="[folder1]";

$staticsync_autotheme=false;

$staticsync_folder_structure=false;

$staticsync_extension_mapping_default=1;

$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");

$staticsync_extension_mapping[4]=array("flv");

$staticsync_title_includes_path=false;

$staticsync_ingest=false;

$staticsync_alternatives_suffix="_alternatives";

$staticsync_prefer_embedded_title = true;
Reply all
Reply to author
Forward
0 new messages