- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: looking for command line for scheduling daily ...
Operating System - Linux
1752592
Members
3159
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 02:39 AM
тАО01-08-2004 02:39 AM
looking for command line for scheduling daily backup
hi,
can some body tell me the command for scheduling daily backup command on linux 5.2 server and linux 7.3 server.
thz
turishi
can some body tell me the command for scheduling daily backup command on linux 5.2 server and linux 7.3 server.
thz
turishi
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 03:02 AM
тАО01-08-2004 03:02 AM
Re: looking for command line for scheduling daily backup
I guess the simplest form is to use "cron". cron is a scheduler that runs things at regular intervals. It takes a file called a crontab file which contains the time and day and month that a program should run and contains the path to the program to run. You edit your crontab file with "crontab -e" and an example would be
# Run daily backup job at 4:40 every day:
40 4 * * * tar cvf /dev/st0 /*
In this example "tar" is used to backup to tape but you would replace this with your chosen method of backing up.
Check out the man page for "cron" and "crontab"
# Run daily backup job at 4:40 every day:
40 4 * * * tar cvf /dev/st0 /*
In this example "tar" is used to backup to tape but you would replace this with your chosen method of backing up.
Check out the man page for "cron" and "crontab"
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 03:03 AM
тАО01-08-2004 03:03 AM
Re: looking for command line for scheduling daily backup
If your utilizing omniback, your cell manager's crontab may initiated the backup...
setup an executable shell script containing the following omniback command:
/opt/omni/bin/omnib -datalist DATAlistname
(review omnib man for more info)
if your utilizing tar, that would be setup on the corresponding linux server...
you would need a backup device:
backup dev filesystem
tar cvf /dev/rmt/0m /home/* > /logdirectory/weekly_home.log 2>&1
another option is dump, which I have not tried....checkup man pages.
hope this helps and happy new-year,
manuel
setup an executable shell script containing the following omniback command:
/opt/omni/bin/omnib -datalist DATAlistname
(review omnib man for more info)
if your utilizing tar, that would be setup on the corresponding linux server...
you would need a backup device:
backup dev filesystem
tar cvf /dev/rmt/0m /home/* > /logdirectory/weekly_home.log 2>&1
another option is dump, which I have not tried....checkup man pages.
hope this helps and happy new-year,
manuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2004 03:05 AM
тАО01-08-2004 03:05 AM
Re: looking for command line for scheduling daily backup
You do this with the at command or for regular jobs cron
crontab -e
edits the cron file.
Here is an example
30 4 * * * /backupscript 2>&1 | mail -s "backup job" youraddress@yourisp.com
This job runs the backup script at 4:30 a.m. every day and mails the output to your email address
crontab -l shows in non-edit mode the users current cron table(schedule).
SEP
crontab -e
edits the cron file.
Here is an example
30 4 * * * /backupscript 2>&1 | mail -s "backup job" youraddress@yourisp.com
This job runs the backup script at 4:30 a.m. every day and mails the output to your email address
crontab -l shows in non-edit mode the users current cron table(schedule).
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP