Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
File::CleanupTaskCPAN module from Savio Dimatteo (DARKSMO)Presentation by Alex Balhatchet (KAORU)
A little about me
A little about Lokku/NestoriaWere hiring! http://lokku.com/jobs
File::CleanupTaskConfiguration based file deletion and backup
The Problemo Lots of logs and junk lying aroundo How to delete old files and save disk space?o How to avoid deleting the w...
The Solutiono Point it at a directoryo Tell it how old files are allowed to beo Files go away!
The Solutiono Configuration driveno Designed to be run via crono Super awesome dry-run and verbose modes
Action!~$ run-file-cleanuptask       --conf ops.tasks          --taskname snapshot       --verbose
Basics[logs]path        = /home/...max_days    = 14recursive   = 1
Pattern Matching[searchindexbuild-reports]max_days           = 7path               = /home/...pattern            = /[/]rep...
Pattern Matching[releases]max_days        =   3path            =   /home/...do_not_delete   =   /important.txt/recursive  ...
Backup instead of delete[dropbox-backupraw]path        = /home/...max_days    = 4backup_path = /home/.../old/recursive   = 1
Compress those backups[dropbox-backupraw]path        = /home/...max_days    = 4recursive   = 1backup_path = /home/.../old/...
Keeping Tidy[temp]max_days                  =   20path                      =   /home/...prune_empty_directories   =   1re...
Keeping Tidy[releases]max_days             = 3path                 = /home/...delete_all_or_nothing_in     = /home/...recu...
Hey, Im using that![geobuilds]max_days                =   5path                    =   /home/...keep_if_linked_in       = ...
CPAN ModulePlease try File::CleanupTask out!https://metacpan.org/module/File::CleanupTaskForks and pull requests welcome!h...
Questions?
Thanks!Reminder: were hiring! http://lokku.com/jobs
File::CleanupTask
Upcoming SlideShare
Loading in …5
×

File::CleanupTask

827 views

Published on

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.

Published in: Technology, Art & Photos
  • Be the first to comment

  • Be the first to like this

File::CleanupTask

  1. 1. File::CleanupTaskCPAN module from Savio Dimatteo (DARKSMO)Presentation by Alex Balhatchet (KAORU)
  2. 2. A little about me
  3. 3. A little about Lokku/NestoriaWere hiring! http://lokku.com/jobs
  4. 4. File::CleanupTaskConfiguration based file deletion and backup
  5. 5. The Problemo Lots of logs and junk lying aroundo How to delete old files and save disk space?o How to avoid deleting the wrong things?!
  6. 6. The Solutiono Point it at a directoryo Tell it how old files are allowed to beo Files go away!
  7. 7. The Solutiono Configuration driveno Designed to be run via crono 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 = 14recursive = 1
  10. 10. Pattern Matching[searchindexbuild-reports]max_days = 7path = /home/...pattern = /[/]report.+$/recursive = 1
  11. 11. Pattern Matching[releases]max_days = 3path = /home/...do_not_delete = /important.txt/recursive = 1
  12. 12. Backup instead of delete[dropbox-backupraw]path = /home/...max_days = 4backup_path = /home/.../old/recursive = 1
  13. 13. Compress those backups[dropbox-backupraw]path = /home/...max_days = 4recursive = 1backup_path = /home/.../old/backup_gzip = 1
  14. 14. Keeping Tidy[temp]max_days = 20path = /home/...prune_empty_directories = 1recursive = 1
  15. 15. Keeping Tidy[releases]max_days = 3path = /home/...delete_all_or_nothing_in = /home/...recursive = 1
  16. 16. Hey, Im using that![geobuilds]max_days = 5path = /home/...keep_if_linked_in = /home/...recursive = 1
  17. 17. CPAN ModulePlease try File::CleanupTask out!https://metacpan.org/module/File::CleanupTaskForks and pull requests welcome!https://github.com/darksmo/File-CleanupTask
  18. 18. Questions?
  19. 19. Thanks!Reminder: were hiring! http://lokku.com/jobs

×