|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Crontab backup
I have three users on my server
a) root b) oracle c) download i want to take backup of cron for everyuser everyday. Is there any way to schedule this process. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
CRONTAB(1) FreeBSD General Commands Manual CRONTAB(1) NAME crontab -- maintain crontab files for individual users (V3)SYNOPSIS crontab [-u user] file... Did you try crontab(1)? |
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
|||
|
|||
|
crontab backup
you can edit crontab file >(crontab -e) command...but if you want to take oracle backup you must stop oracle after start backup...are your backup ufsdump backup???
|
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
I think that the OP wants to backup the crontab files for every user every day. This would be as simple as doing a 'cp -p' of the crontab files. Use the following script: Code:
today=$(date +%Y%m%d) mkdir /some_backup_dir/$today cp -p /var/spool/cron/crontabs/* /some_backup_dir/$today Maintain the following cron entry in root's crontab: 00 01 * * * /full_path_of_script/whatever_you_call_this_script |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment? | MVEERA | Shell Programming and Scripting | 0 | 11-23-2011 11:27 AM |
| Automatic backup through DD and crontab | gjh | Solaris | 4 | 05-17-2011 12:13 PM |
| about backup with crontab | unknown_man | AIX | 8 | 10-29-2010 03:03 AM |
| copy crontab file from backup server | njoroge | SCO | 4 | 06-18-2010 12:37 PM |
| Check backup file size on backup tape | ayhanne | UNIX for Dummies Questions & Answers | 0 | 10-25-2007 11:41 AM |
|
|