Successfully reported this slideshow.

File::CleanupTask

0

Share

Upcoming SlideShare
Huong dan cai dat hadoop
Huong dan cai dat hadoop
Loading in …3
×
1 of 20
1 of 20

File::CleanupTask

0

Share

Download to read offline

File::CleanupTask is a CPAN module that the company I work at has opensourced. This is a presentation I gave about it at the London Perl Mongers technical meeting in August 2012.

File::CleanupTask is a CPAN module that the company I work at has opensourced. This is a presentation I gave about it at the London Perl Mongers technical meeting in August 2012.

More Related Content

File::CleanupTask

  1. 1. File::CleanupTask CPAN module from Savio Dimatteo (DARKSMO) Presentation by Alex Balhatchet (KAORU)
  2. 2. A little about me
  3. 3. A little about Lokku/Nestoria We're hiring! http://lokku.com/jobs
  4. 4. File::CleanupTask Configuration based file deletion and backup
  5. 5. The Problem o Lots of logs and junk lying around o How to delete old files and save disk space? o How to avoid deleting the wrong things?!
  6. 6. The Solution o Point it at a directory o Tell it how old files are allowed to be o Files go away!
  7. 7. The Solution o Configuration driven o Designed to be run via cron o Super awesome dry-run and verbose modes
  8. 8. Action! ~$ run-file-cleanuptask --conf ops.tasks --taskname snapshot --verbose
  9. 9. Basics [logs] path = /home/... max_days = 14 recursive = 1
  10. 10. Pattern Matching [searchindexbuild-reports] max_days = 7 path = /home/... pattern = /[/]report.+$/ recursive = 1
  11. 11. Pattern Matching [releases] max_days = 3 path = /home/... do_not_delete = /important.txt/ recursive = 1
  12. 12. Backup instead of delete [dropbox-backupraw] path = /home/... max_days = 4 backup_path = /home/.../old/ recursive = 1
  13. 13. Compress those backups [dropbox-backupraw] path = /home/... max_days = 4 recursive = 1 backup_path = /home/.../old/ backup_gzip = 1
  14. 14. Keeping Tidy [temp] max_days = 20 path = /home/... prune_empty_directories = 1 recursive = 1
  15. 15. Keeping Tidy [releases] max_days = 3 path = /home/... delete_all_or_nothing_in = /home/... recursive = 1
  16. 16. Hey, I'm using that! [geobuilds] max_days = 5 path = /home/... keep_if_linked_in = /home/... recursive = 1
  17. 17. CPAN Module Please try File::CleanupTask out! https://metacpan.org/module/File::CleanupTask Forks and pull requests welcome! https://github.com/darksmo/File-CleanupTask
  18. 18. Questions?
  19. 19. Thanks! Reminder: we're hiring! http://lokku.com/jobs

×