This guide is a complete walkthrough covering:
We assume you "andrea@acmefilm.se" have been invited as domain(organization) "acmefilm", having a main server "alpha" @ "hq" site (Stockholm) and a remote server "beta" @ "london" site, that both should work with files on a share called "Projects" (Linux path: "/mnt/projects", PC path: "P:"). Also, we assume you have a private VPN LAN connection between offices, were server "alpha" has IP 10.10.10.1/24 and "beta" has IP 10.10.10.2/24 (this can be omitted and replaced with a port forward of ports 45190-45209 in HQ firewall to "alpha" server in case you do not possess a site-site VPN connection).
Your task would be to make sure people in London have a subset of your files (i.e. a project folder) to work on, having the same paths as on main premises, for easy sync and pick up of work project files. Instead of having to manually copy files forth and back, we collect the files needed to copy and submit a transfer job to FilmHUB using a custom made button in user application.
Important note: The terms mentioned/configuration steps outlined below are described in detail in our FilmHUB Admin Manual, for instructions on how to use the FilmHUB desktop app - have a look at the FilmHUB User Manual. Always consult the manuals before your reach out to support@filmhubsoftware.com.
To be able to sync files at remote site, we need to add install a server on a computer that has access to local site storage. We assume the storage is mounted @ "/mnt/projects" here aswell, and the hostname of computer is "beta":
Now we are almost done. FilmHUB attempts to connect using Internet WAN IP addresses, but we want to direct the traffic over our dedicated VPN trunk. To achieve this, we need to configure FilmHUB accordingly:
We assume you have decided to copy the following files to remote site for users to start working on:
/mnt/projects/lostinspace/REF. (directory)/mnt/projects/_REF/fire/acme_ref_oil_burning_on_water.tif.Sending an E-mail to admins plus additional recipient "john@acmefilm.co.uk" when transfer is done.
Crafting job JSON
Besides using the FilmHUB desktop app to send files, FilmHUB accepts new jobs defined in JSON format for submit through CLI, Python API or REST. The JSON for files above would be. Save this to temporary file, for example /tmp/filmhub/jobsubmit/A5F1D.json :
{ "code":"lostinspace refs to london", "mail":"+john@acmevfx.co.uk", "tasks":{ "0":{ "source":"acmefilm:/mnt/projects/lostinspace/REF", "destination":"site=london" }, "1":{ "source":"acmefilm:share=projects/_REF/fire/acme_ref_oil_burning_on_water.tif", "destination":"site=london" } }}Note: The syntax of second file shows how a named share can be given instead of full path.
Using the CLI
filmhubcli job create /tmp/filmhub/jobsubmit/A5F1D.jsonYou should get a notification that job has been submitted. The transfer job will appear in desktop app and be listable in CLI.
filmhubcli job findTo look for clues why job is not starting or possible errors during transfer, double-click job in desktop app and sift through the logs that opens when clicking the magnifier glass icon on a file/task. Or using the CLI:
filmhubcli job report <ID>Using Python API
import filmhub_apisession = filmhub_api.Session()job = session.create("job","/tmp/filmhub/jobsubmit/A5F1D.json")Print job status:
print session.str(session.find_one("job where id=%s"%job["id"]))To add file creatures_showreel_2018.mov to an existing job:
session.create("task", {"tasks":["share=projects/_REF/creatures_showreel_2018.mov"]}, job["id"])Or if renaming needed:
session.create("task", {"tasks":[{"source":"share=projects/_REF/creatures_showreel_2018.mov","destination":"share=projects/TMP/creatures_showreel_2018_tmp.mov"}]}, job["id"])HINTS:
..,"email":"none",... supplied.To sync back files from remote office simply reverse the source and destination parties:
{ "code":"lostinspace refs to HQ", "tasks":{ "0":{ "source":"site=london:/mnt/projects/lostinspace/REF", "destination":"acmefilm" }, "1":{ "source":"site=london,share=projects/_REF/fire/acme_ref_oil_burning_on_water.tif", "destination":"acmefilm" } }}Voila, you should be all setup with FilmHUB!
Rev 1.11, 2019.04.24