160 likes | 176 Views
RSYNC. Michael Martys Automation Officer mmartys@loc.gov. What is rsync. rsync is a software application for Unix and Windows systems that synchronizes files and directories from one location to another in an efficient manner. Why use rsync. You want to shadow the BARD collection
E N D
RSYNC Michael Martys Automation Officer mmartys@loc.gov
What is rsync • rsync is a software application for Unix and Windows systems that synchronizes files and directories from one location to another in an efficient manner
Why use rsync • You want to shadow the BARD collection • You would like to do so with minimal effort • Some sort of automation
What is necessary • Need some technical skills • A computer to run it on • A reasonable network connection • Storage for the books
Steps to get setup • No need for notes– I’ll email it to you if you contact me • First step is to express interest to NLS
Sign agreement with NLS • Basically covers intended use • Email Steve Prine (spri@loc.gov)
Send NLS critical information • NLS needs to open up our firewall to allow access by your computer
What we need: • Library Name • Street Address for (a) • Contact Name/s for (a) • email address for (a) • Phone(s) for (a)
What we need: • IP Address (or range) of computer that will be used to access rsync server • Contact Name/s responsible for the computer in (f) • email address for (g) • Phone(s) for (g) • Street Address where computer located
Hardware and software • A PC will work fine • Linux based – rsync included • Windows based – need cygwin (www.cygwin.com)
Acquire storage • BARD no longer fits on a 3 terabyte drive • Four terabyte drives are available now • Drive array (amazon has a number - search for 4 or 6TB ) • Logical volumes (bind multiple drives together)
Generate ssh rsa key pair • We run rsync over ssh • No pass phrase • Send me the public key file via email ( id_rsa.pub) • Google ssh-keygen to find out how to generate key • I will load key into our server
Starter brick • Copy of BARD to bootstrap your collection • Otherwise it can take months to sync • We will send you a drive with BARD on it • You copy the files to your system and send it back
You are ready to start • We ask that you do your syncing during BARD’s least busy times • Midnight to noon • A tool called cron is used to run rsync automatically • Command to use: /usr/local/bin/rsync --rsh=/usr/bin/ssh --delete-after --rsync-path=/usr/local/bin/rsync -ravzL rs3.loc.gov:dtb /mylocaldirectory/dtb
A word about stats • Rsync is separate from BARD • Not part of BARD stats • Library needs to handle stats for titles circulated out of local copy
How much effort? • Probably best to ask libraries that have done it • MA1A