Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # File: root-crontab.txt
- # Copyright (c) 2018-2019 Justin Hanekom <justin_hanekom@yahoo.com>
- # Licensed under the MIT License
- # Permission is hereby granted, free of charge, to any person obtaining
- # a copy of this software and associated documentation files
- # (the "Software"), to deal in the Software without restriction,
- # including without limitation the rights to use, copy, modify, merge,
- # publish, distribute, sublicense, and/or sell copies of the Software,
- # and to permit persons to whom the Software is furnished to do so,
- # subject to the following conditions:
- #
- # The above copyright notice and this permission notice shall be
- # included in all copies or substantial portions of the Software.
- #
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- # m h dom mon dow command
- MAILTO = hoozeit@gmail.com
- # --- remove unneeded files
- 0 23 * * * /home/justin/Dropbox/Justin/Linux/sbin/rm-unneeded-files.py /home/justin/
- 0 23 1 * * /home/justin/Dropbox/Justin/Linux/sbin/rm-unneeded-files.py /
- # --- all files under justin's home belong to him
- 0 23 * * * /home/justin/Dropbox/Justin/Linux/sbin/chown-dir-user.py justin /home/justin/
- # --- create list of installed packages
- @daily /home/justin/Dropbox/Justin/Linux/sbin/apt-clone-clone.py justin /home/justin/Documents/ --prefix home_ --remove
- @daily /home/justin/Dropbox/Justin/Linux/sbin/create-dpkg-list.py justin /home/justin/Documents/ --prefix dpkg_ --remove --suffix .txt
- # --- rsync backup dirs
- @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /home/justin/Dropbox/ /media/justin/WD/backups/dropbox/ --remove
- @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /etc/ /media/justin/WD/backups/etc/ --remove
- @daily /home/justin/Dropbox/Justin/Linux/sbin/rsync-dir.py /var/ /media/justin/WD/backups/var/ --remove
- # --- tar backup
- 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