Last change
on this file since 37121 was 37121, checked in by davidb, 16 months ago |
Change of name of collection to reflect the planned move to have programmes and metadata about performers together in one collection
|
-
Property svn:executable
set to
*
|
File size:
725 bytes
|
Rev | Line | |
---|
[36992] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[36998] | 3 | echo "Copying Items/HMS_* directories to ../import"
|
---|
[36992] | 4 |
|
---|
[37121] | 5 | #for full_d in Items/HMS_* ; do
|
---|
| 6 | for full_d in Items/*_*[0-9] ; do
|
---|
[36998] | 7 | d=${full_d##*/}
|
---|
[36992] | 8 | if [ -d ../import/$d ] ; then
|
---|
| 9 | echo " Removing pre-existing ../import/$d"
|
---|
| 10 | /bin/rm -r ../import/$d
|
---|
| 11 | fi
|
---|
| 12 |
|
---|
[37121] | 13 | #echo " Copying $d"
|
---|
| 14 | #/bin/cp -r $full_d ../import/.
|
---|
| 15 |
|
---|
| 16 | # Example of recursive copy that uses hardlinks for files
|
---|
| 17 | # rsync -av --link-dest="$PWD/a" a/ b
|
---|
| 18 | #
|
---|
| 19 | # For more details see (down near the bottom)
|
---|
| 20 | # https://unix.stackexchange.com/questions/202430/how-to-copy-a-directory-recursively-using-hardlinks-for-each-file
|
---|
| 21 |
|
---|
| 22 | echo " Hardlink file recursive copying $d"
|
---|
| 23 | rsync -av --link-dest="$PWD/$full_d" $full_d/ ../import
|
---|
| 24 |
|
---|
| 25 |
|
---|
[36992] | 26 | done
|
---|
| 27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.