Skip to content

Instantly share code, notes, and snippets.

@slaykovsky
Created March 10, 2017 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaykovsky/b0b6c523811cb1c9998251741ee8b7bf to your computer and use it in GitHub Desktop.
Save slaykovsky/b0b6c523811cb1c9998251741ee8b7bf to your computer and use it in GitHub Desktop.
#!/bin/sh
if [[ ! -d /var/tmp/ccache ]]
then
mkdir /var/tmp/ccache
fi
rsync -avhz -x /usr/portage/local/ccache /var/tmp/ > /dev/null 2>/var/log/ccache-restore.log
touch /var/tmp/ccache/.restored
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment