-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcrontab
19 lines (14 loc) · 1.01 KB
/
crontab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
HOME=/Users/jay
SHELL=/bin/bash
PATH=$HOME/dotfiles_local/bin:$HOME/dotfiles/bin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin
GOOGLE_DRIVE="$HOME/Google Drive/My Drive"
# 10 04 * * 1,2,3,4,5 /Users/jay/dotfiles/bin/add_files "/Users/jay/Music/iTunes/iTunes Music/" "jay@media:/media/Backup/media/"
# 10 03 * * 1,2,3,4,5 /Users/jay/dotfiles/bin/add_files "/Users/jay/Documents/content/" "jay@media:/media/Backup/content/"
# 10 02 * * * /Users/jay/dotfiles/bin/backup "$HOME/Projects/" "$HOME/Documents/"
# 30 07 * * FRI-SUN do_writing
# 30 07 * * MON-THU do_work
# Email a report of largest files at 3 AM on the 1st of each month.
0 3 1 * * du -h ${HOME} 2>&1 | sort -rh | head -n 100 | mail -s 'Large directory report' [email protected]
# Back up history files nightly.
0 5 * * * cp ${HOME}/.zsh_history "$GOOGLE_DRIVE/shell/.zsh_history"
0 5 * * * cp ${HOME}/.local/share/pry/pry_history "$GOOGLE_DRIVE/shell/.pry_history"