Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Bundle up and move out old lgm-tree
- #
- set -x
- set -e
- echo "Started: " $(date)
- echo $PYTHONPATH
- export TERM=xterm
- export TMPDIR=/tmp/$(date +%s)
- mkdir $TMPDIR
- function lgm_export () {
- local TMPDIR="$1"
- local SRCDIR="$2"
- local TGTDIR=${TMPDIR}/$(dirname "$SRCDIR")
- mkdir -p "$TGTDIR"
- mv "$SRCDIR" "$TGTDIR"
- }
- export SHELL=/bin/bash
- export -f lgm_export
- find /opt/var/me.acr/ginger/nobody/ -name lgm | parallel "lgm_export $TMPDIR {}"
- tar cvfz /var/tmp/lgm-bundle-$(date +%s).tgz $TMPDIR
- rm -rf $TMPDIR
- echo "Finished: " $(date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement