Mercurial Hosting > hghosting
view moveLogs.sh @ 26:d3b72a8bfbe9 default tip
Add rate limiting, change moveLogs.sh to only operate on non-empty files
| author | Violet7 | 
|---|---|
| date | Sat, 01 Nov 2025 22:12:56 -0700 | 
| parents | 8b4481769cc6 | 
| children | 
line wrap: on
 line source
#!/bin/bash -e . common.sh; mv $hgaccesslog ${hgaccesslog}".0"; reposLogsDir=${ROOTPWD}"/logs/repos"; find "$reposLogsDir" -type f ! -empty | while read filename; do mv -f "$filename" "${filename}.0"; done;
