Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for file in `find "${syncdir}" -type f -print`
- do
- target="${archdir}/`stat -f %m ${file}`-${LOGTAG}.log.bz2"
- if [ ! -e "${target}" ]; then
- ln "${file}" "${target}" || echo "failed to link ${file} to ${target}" >&2
- fi
- done
Add Comment
Please, Sign In to add comment