-
Notifications
You must be signed in to change notification settings - Fork 1
/
cron.sample
28 lines (21 loc) · 1.04 KB
/
cron.sample
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
# MT Grid Cron Jobs
# Create a cron job for each of the following commands through the
# Media Temple control panel. Replace {your-path} with the appropriate
# path name.
#
{you-path}/mt-grid-backup/backup.sh -d -f # Backs up database and files
{you-path}/mt-grid-backup/backup.sh -D # Uploads database backups to S3
{you-path}/mt-grid-backup/backup.sh -F # Uploads file backups to S3
{you-path}/mt-grid-backup/backup.sh -c # Removes local backup copies
# STANDARD CRONTAB
# Use this if your host allows direct command-line access to your crontab
# Edit the crontab file with the command `crontab -e` and paste the
# commands below. Edit the times as desired.
# Backup databases and files every Sunday at 12:00 AM
0 0 * * * 0 sh {you-path}/mt-grid-backup/backup.sh -d -f
# Upload database backups at 1:00 AM
0 1 * * * 0 sh {you-path}/mt-grid-backup/backup.sh -D
# Upload file backups at 2:00 AM
0 2 * * * 0 sh {you-path}/mt-grid-backup/backup.sh -F
# Cleanup local backup files at 3:00 AM
0 3 * * * 0 sh {you-path}/mt-grid-backup/backup.sh -c