Skip to content

bimberlabinternal/WorkbookSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple tool designed to sync files on a local computer with workbooks in a LabKey Server.

On the LabKey Server, a folder can have a series of workbooks, which will be numered sequentially starting with 1. Assuming you computer has a folder with subfolders corresponding to workbooks, this tool can be used to sync files from these local folders to the server. Please see the script, syncFolder.py, for a more extensive explanation of the sync process and running the script.

Installation

The script has the following requirements:

Usage

See the example scripts in /example_usage. Execution is fairly simple:

python syncFolder.py \
	--serverUrl="https://myServer.edu/" \
	--labkeyFolderPath="/Labs/" \
	--username="username" \
	--password="password" \
	--localFolder=/Expts \
	--lastExecutionFile=/Expts/.lastWorkbookSync.txt \
	--jarFile=webdav_sync1_1_8.jar 2>&1 > /Expts/sync-log.txt

In the above example, the file .lastWorkbookSync.txt will store the time of the last sync operation. The next sync will only attempt to sync directories with a file modified after this time. This can greatly reduce the runtime if your source files do not change often. Also, the above example saves the output of the last sync to sync-log.txt.

Scheduling for Automatic Backup

To run your script script on a schedule, consider cron for linux and osx. On windows, consider Task Scheduler.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published