Skip to content

Commit

Permalink
Snapshots: fix dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jul 10, 2017
1 parent 500e81b commit f1a4108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/snapshots/pasdoc_snapshot
Expand Up @@ -33,6 +33,7 @@ ln -s `date +%F` "${OUTPUT_BASE_PATH}"latest

# Clean old snapshots, to conserve disk space.
# Keep only snapshots from last couple of days.
pushd .
cd "${OUTPUT_BASE_PATH}"
set +e
find . -mindepth 1 -maxdepth 1 \
Expand All @@ -48,6 +49,7 @@ find . -mindepth 1 -maxdepth 1 \
'(' -not -iname `date --date='-7 day' +%F` ')' -and \
-exec rm -Rf '{}' ';'
set -e
popd

echo '---------------------------------------------------------------'
echo 'Setting snapshots permissions:'
Expand Down

0 comments on commit f1a4108

Please sign in to comment.