Skip to content

Commit 4c54124

Browse files
committed
Reclaim some space (got 9GB cache !)
1 parent 8a03fb2 commit 4c54124

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

VPS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,17 @@ And schedule it with: `crontab -e`
371371

372372
A few helpful commands:
373373
```
374-
source /var/www/EventOrganizer/back/env/bin/activate
374+
source /var/www/EventOrganizer/back/env313/bin/activate
375375
less /var/log/nginx/error.log
376376
less /var/log/nginx/access.log
377377
journalctl -u nginx
378378
journalctl -u eventorganizer
379379
echo "alias o='ls -AlFh --time-style=long-iso --color=auto'" >~/.bash_aliases
380+
381+
# delete cache files for backgrounds than haven't been accessed in a year
382+
du -sh /var/www/EventOrganizer/backgrounds/
383+
find /var/www/EventOrganizer/backgrounds/ -type f -atime +365 -delete
384+
du -sh /var/www/EventOrganizer/backgrounds/
380385
```
381386

382387
## Links

0 commit comments

Comments
 (0)