Advertisement
justin_hanekom

root-crontab.txt

Mar 30th, 2019
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. # File: root-crontab.txt
  2. # Copyright (c) 2018-2019 Justin Hanekom <justin_hanekom@yahoo.com>
  3. # Licensed under the MIT License
  4.  
  5. # Permission is hereby granted, free of charge, to any person obtaining
  6. # a copy of this software and associated documentation files
  7. # (the "Software"), to deal in the Software without restriction,
  8. # including without limitation the rights to use, copy, modify, merge,
  9. # publish, distribute, sublicense, and/or sell copies of the Software,
  10. # and to permit persons to whom the Software is furnished to do so,
  11. # subject to the following conditions:
  12. #
  13. # The above copyright notice and this permission notice shall be
  14. # included in all copies or substantial portions of the Software.
  15. #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  17. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  18. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  20. # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  21. # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  22. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. # m h dom mon dow command
  25.  
  26. MAILTO = hoozeit@gmail.com
  27.  
  28. # --- remove unneeded files
  29. 0 23 * * * /home/justin/Dropbox/Justin/Linux/sbin/rm-unneeded-files.py /home/justin/
  30. 0 23 1 * * /home/justin/Dropbox/Justin/Linux/sbin/rm-unneeded-files.py /
  31.  
  32. # --- all files under justin's home belong to him
  33. 0 23 * * * /home/justin/Dropbox/Justin/Linux/sbin/chown-dir-user.py justin /home/justin/
  34.  
  35. # --- create list of installed packages
  36. @daily /home/justin/Dropbox/Justin/Linux/sbin/apt-clone-clone.py justin /home/justin/Documents/ --prefix home_ --remove
  37. @daily /home/justin/Dropbox/Justin/Linux/sbin/create-dpkg-list.py justin /home/justin/Documents/ --prefix dpkg_ --remove --suffix .txt
  38.  
  39. # --- rsync backup dirs
  40. @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /home/justin/Dropbox/ /media/justin/WD/backups/dropbox/ --remove
  41. @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /etc/ /media/justin/WD/backups/etc/ --remove
  42. @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /var/ /media/justin/WD/backups/var/ --remove
  43.  
  44. # --- tar backup
  45. 0 2 * * */3 /home/justin/Dropbox/Justin/Linux/sbin/tar-home.py justin /home/justin/ /media/justin/WD/backups/ --prefix home-justin_ --suffix .tar.gz --keep 4 --remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement