Tweaked the copydb script to handle symlinked data directories.

- Legacy-Id: 18585
This commit is contained in:
Henrik Levkowetz 2020-10-09 13:17:09 +00:00
parent 1332c0aa5c
commit 8f48854142

View file

@ -117,8 +117,10 @@ if [ -e "/.dockerenv" -o -n "$(grep -s '/docker/' /proc/self/cgroup)" ]; then
die "It looks as if you're running inside docker -- please quit docker first." die "It looks as if you're running inside docker -- please quit docker first."
fi fi
cd $progdir/../data/ \ workdir=$(realpath $progdir/../data/mysql/..)
&& echo "Building tarfile ..." \ echo "Working directory: $workdir"
&& tar cjf ietf_utf8.bin.tar.bz2 mysql \ cd $workdir
&& echo "Copying tarfile to ietfa.amsl.com ..." \ echo "Building tarfile ..."
&& scp ietf_utf8.bin.tar.bz2 ietfa.amsl.com:/a/www/www6s/lib/dt/sprint/ tar cjf ietf_utf8.bin.tar.bz2 mysql
echo "Copying tarfile to ietfa.amsl.com ..."
scp ietf_utf8.bin.tar.bz2 ietfa.amsl.com:/a/www/www6s/lib/dt/sprint/