-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrontab.txt
39 lines (34 loc) · 1.66 KB
/
crontab.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#to start cron in Linux - Bootable
sudo systemctl start cronie.service
sudo systemctl enable cronie.service
#crontab Linux
0 00 * * * /home/felipe/backups.sh
0 03 * * * /home/felipe/backups.sh
0 05 * * * /home/felipe/backups.sh
0 09 * * * /home/felipe/backups.sh
0 12 * * * /home/felipe/backups.sh
0 15 * * * /home/felipe/backups.sh
0 18 * * * /home/felipe/backups.sh
0 19 * * * /home/felipe/backups.sh
0 21 * * * /home/felipe/backups.sh
0 22 * * * /home/felipe/backups.sh
# run every minute to test Linux
1 * * * * /bin/echo testing Cron >> /home/felipe/test.txt
#crontab macOS
0 00 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 03 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 05 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 09 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 12 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 15 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 18 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 19 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 21 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
0 22 * * * bash /Volumes/Macintosh\ HD/Users/felipe/Downloads/backups.sh
# run every minute to test macOS
1 * * * * /bin/echo testing Cron >> /Volumes/Macintosh\ HD/Users/felipe/Downloads/test-backups.txt
#Volumes in macOS
/Volumes/Macintosh\ HD/Users/$HOME/Downloads
# when running in a SDCARD
0 14 * * * bash /Volumes/Macintosh\ HD/Users/$HOME/Downloads/backups.sh
1 * * * * /bin/echo testing Cron >> /Volumes/Macintosh\ HD/Users/$HOME/Downloads/test.txt