Setting up LONE-TAR 'unattended' backups through CRON - Single or Multiple
| Question: | How do I setup a CRON unattended backup through LONE-TAR? Can I setup multiple CRON backups? |
| Keywords: | cron, unattended, nightly |
| Operating Systems: | ALL |
There are two ways to setup CRON with LONE-TAR:
1. Setting up CRON backup
2. Setting up multiple CRON backups
Take a look at the CRONY Menu in greater detail
YouTube Video: How to setup a backup with LONE-TAR through CRON 'unattended'
Critical Notes
- When setting up multiple CRON backups, please make sure they do not overlap to ensure successful backups.
Steps to setup a CRON backup 
1. Assuming you have already setup your backup device within LONE-TAR lets get into CRONY.
Type the command:
# ltmenu
Select Option 6 (Utilities)
Select Option 1 (Automate Nightly Backups through 'cron')
Select Option 'S' (Setup LONE-TAR Nightly Backups)
Select Option 'M' for LONE-TAR Master Backup OR
Select Option 'I' for Incremental Backup OR
Select Option 'S' for Selective Backup
Please select device you wish to backup to. If default, select 'Y'
Command: exec /usr/lone-tar/ltar.M.cron
Execute command ? ( y or n ) Please answer 'y'
Select Option 1 (On Specified Days of the Week)
For Monday through Friday Rotation enter number sequence: 1 2 3 4 5
NOTE: (between each number-day is a carriage return)
Type 'Q' to quit specifying days
Enter Hour: (In military time)
23 = 11pm
12 = 12pm
0 = 12am
Type 'Q' to quit specifying hours
Enter Minutes: xx
Type 'Q' to quit specifying minutes
Review your CRON entry and make sure times are accurate
Type 'Q' to quit CRON review
Type 'Q' to quit adding any new CRON entries
Type 'U' to update CRON.
UPDATING the crontab file for "root" . . .
COMMAND: crontab .cron.root
SUCCESS
The crontab file for "root" has been written;
'cron' has been updated.
Select '1' to change current setting
Enter as many email addresses as you see fit...
Steps to setup multiple CRON backups 
2. To add another CRON entry, all you need to do is follow the same procedure as above.
After you completed setting up 1 CRON backup from instructions above, follow steps below for second CRON entry.
Type the command:
# ltmenu
Select Option 6 (Utilities)
Select Option 1 (Automate Nightly Backups through 'cron')
Select Option 'S' (Setup LONE-TAR Nightly Backups)
Type 'Q' to quit CRON Review
Type 'A' to add new CRON tab
Select Option 'M' for Master Backup OR
Select Option 'I' for Incremental Backup OR
Select Option 'S' for Selective Backup
Please select device you wish to backup to. If default, select 'Y'
Command: exec /usr/lone-tar/ltar.M.cron
Execute command ? ( y or n ) Please answer 'y'
Select Option 1 (On Specified Days of the Week)
For Monday through Friday Rotation enter number sequence: 1 2 3 4 5
NOTE: (between each number-day is a carriage return)
Type 'Q' to quit specifying days
Enter Hour: (In military time)
23 = 11pm
12 = 12pm
0 = 12am
Type 'Q' to quit specifying hours
Enter Minutes: xx
Type 'Q' to quit specifying minutes
Review your CRON entry and make sure times are accurate
Type 'Q' to quit CRON review
Type 'Q' to quit adding any new CRON entries
Type 'U' to update CRON.
UPDATING the crontab file for "root" . . .
COMMAND: crontab .cron.root
SUCCESS
The crontab file for "root" has been written;
'cron' has been updated.