diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-03 11:07:15 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-03 11:07:15 +0100 |
commit | 6e52192a787f91d6b17f8d94be0af69330eb84dd (patch) | |
tree | bde5ac6868d578e79e7d2137908a26827e523c71 /contrib/angstrom | |
parent | 97a8ca438f2bfb7d91fcce0732e7b2951ee72d00 (diff) |
angstrom feed uploader: symlink packages instead of copying them, this saves the autobuilder from moving ~8GB per upload run.
Diffstat (limited to 'contrib/angstrom')
-rw-r--r-- | contrib/angstrom/upload-packages.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/angstrom/upload-packages.sh b/contrib/angstrom/upload-packages.sh index d6a3884f5b..4d3362b6d2 100644 --- a/contrib/angstrom/upload-packages.sh +++ b/contrib/angstrom/upload-packages.sh @@ -17,13 +17,13 @@ mkdir -p upload-queue || true echo "Deleting morgue directories" find ipk/ -name "morgue" -exec rm -rf \{\} \; -# Copy all packages to an upload queue -echo "Copying packages to upload queue" -find ipk/ -name "*.ipk" -exec cp \{\} upload-queue/ \; +# Copy symlink packages to an upload queue +echo "Symlink packages to upload queue" +find ipk/ -name "*.ipk" -exec ln -sf ${PWD}/\{\} upload-queue/ \; # Find file already present on webserver echo "Getting file list from server" -scp $REMOTEM:$REMOTED/unsorted/files-sorted files-remote +scp -C $REMOTEM:$REMOTED/unsorted/files-sorted files-remote ls upload-queue/ | grep -v morgue > files-local # Check for files already present on webserver @@ -33,7 +33,7 @@ cat files-uniq files-local | sort | uniq -d > files-trans # Copy over non-duplicate files echo "Starting rsync..." -rsync -avz --progress --files-from=files-trans upload-queue/ $REMOTEM:$REMOTED/unsorted/ +rsync -vz --copy-links --progress --files-from=files-trans upload-queue/ $REMOTEM:$REMOTED/unsorted/ # Clean up temporary files echo "Removing upload queue" |