Skip to content

Commit e165f59

Browse files
committed
Doc + crontab to delete cache files
1 parent 4c54124 commit e165f59

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

VPS.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Then: `chmod u+x ~/tomorrow_events.sh`
346346

347347
And schedule it with: `crontab -e`
348348

349-
`0 17 * * * /bin/sh /home/eventorganizer/tomorrow_events.sh`
349+
`0 17 * * * /bin/sh /var/www/EventOrganizer/tomorrow_events.sh`
350350

351351
## Automatic remote backup
352352

@@ -365,7 +365,15 @@ Then: `chmod u+x ~/rsync_backup.sh`
365365

366366
And schedule it with: `crontab -e`
367367

368-
`0 */12 * * * /bin/sh /home/eventorganizer/rsync_backup.sh`
368+
`0 */12 * * * /bin/sh /var/www/EventOrganizer/rsync_backup.sh`
369+
370+
## Delete old cache file for backgrounds
371+
372+
Than haven't been accessed in a year.
373+
Schedule it with: `crontab -e`
374+
375+
`0 0 1 * * find /var/www/EventOrganizer/backgrounds/ -type f -atime +365 -delete`
376+
369377

370378
## Useful
371379

0 commit comments

Comments
 (0)