Created
March 10, 2017 22:13
-
-
Save slaykovsky/775072e619d174763b3b8a7017c5f6ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ ! -d /var/cache ]] | |
then | |
mkdir /var/cache | |
fi | |
rsync -avhz -x /usr/portage/local/cache /var/ > /dev/null 2>/var/log/cache-restore.log | |
touch /var/cache/.restored |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment