Mercurial Hosting > hghosting
comparison 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 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 25:8a588847d730 | 26:d3b72a8bfbe9 | 
|---|---|
| 3 . common.sh; | 3 . common.sh; | 
| 4 | 4 | 
| 5 mv $hgaccesslog ${hgaccesslog}".0"; | 5 mv $hgaccesslog ${hgaccesslog}".0"; | 
| 6 | 6 | 
| 7 reposLogsDir=${ROOTPWD}"/logs/repos"; | 7 reposLogsDir=${ROOTPWD}"/logs/repos"; | 
| 8 ls $reposLogsDir | while read filename; do | 8 find "$reposLogsDir" -type f ! -empty | while read filename; do | 
| 9 mv -f $reposLogsDir/$filename $reposLogsDir/${filename}".0"; | 9 mv -f "$filename" "${filename}.0"; | 
| 10 done; | 10 done; | 
