• Home
  • Technology
    • Ebullientech
    • Entrepreneurship
    • Video Technology
    • Cloud Computing
    • Business Analysis
  • Healthcare
    • Pharmacology
  • Thoughts
    • Food
    • General
    • Stories
    • Places
    • Workplace
    • Social Issues
    • Reviews
  • Quotes
  • Ebullientech News and Events
  • About

Kamalika's Notebook

thinking nothing...............!!

You are here: Home / Kamalika / Technology / Networking / Creating Backup Schedule in RHEL 5

Creating Backup Schedule in RHEL 5

January 13, 2013 By Kamalika Leave a Comment

Creating Backup Schedule in RHEL 5

Creating Backup Schedule in RHEL 5:

  1. Open Putty
  2.  Login to the server (entering server IP)
  3. Login to server using user name and password from the Putty SSH Console
  4.  To create a CRON schedule type:crontab –e <enter>
  5. VI text editor will open as a blank file for the “crontab entries” to be entered; each line represents a separate crontab entry (hereafter referred to as “CRON JOBS”).
  6.  Each CRON JOB has at least 6 sections. Each section is delimited by a single blank space, but the final section may have spaces within it. No spaces are allowed within Sections 1-5, blank spaces are allowed only between those sections. Sections 1-5 are to indicate when and how often you want the task (the sixth position) to be executed and it uses the system time for execution.
  7.  Here is how positions 1-5 are laid out:

1 Minute 0-59
2 Hour 0-23 (0 = midnight)
3 Day 1-31
4 Month 1-12
5 Weekday 0-6 (0 = Sunday)
An asterisk (*) is used to indicate that every instance (i.e. every hour, every weekday, etc.) of the particular time period will be used.

  1. Backup script within the crontab entry is

 * 14 * * 5 root tar czpvf /home/user/backup-$(date +%Y-%m-%d).tar.gz /opt/lampp

 

  1. The CRON is set to 1400 hour (2:00 p.m.) 5th day of week (Friday)
  2. The command that will execute is
    tar czpvf /home/user/backup-$(date +%Y-%m-%d).tar.gz /opt/lamppThis above command will tar the entire content of the directory /opt/lampp and put the tar file into  /home/user/
    The name of the tar file will be backup-$(date +%Y-%m-%d).tar.gz (backup-YYYY-MM-DD.tar.gz)

Filed Under: Networking Tagged With: Creating Backup Schedule in RHEL 5

« Pentago for iPhone
How To Deploy Ruby on Rails in Godaddy? »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

Let’s connect…

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Hello There…

I'm Kamalika, a techpreneur & startup mentor, blogger, hobbyist photographer, Netflix & Kindle indulgent, food connoisseur, Starbucks aficionado and former Disney employee ...next

Looking for something?

Tags

All in One SEO Pack AWS Banaras Blogger Blogging Blogs Dasaswamedh Ghat Ebullientech Ebullientech Interactive LLP Facebook Facebook Developers father's day father's day wishes father's day wishes for dad fathers day love Fathers Day Special Fathers Day wishes from daughter Father’s day memories GeoTech GeoTech Informatics HipHop for PHP Kamalika Guha Roy Kashi Ganga LAMP MySQL Nabaneeta Guha Roy Online Marketing PayPal PayPal's suspension of Indian bank transactions PHP PHP & MySQL Saraswati Puja Search Engine Optimization SEO Startup The Ganges TypePad UCO HUT Varanasi Web 2.0 Web 2.0 Design Web Design Web Marketing WordPress WordPress.COM

Timeline

  • 2021 (3)
  • 2020 (7)
  • 2019 (4)
  • 2018 (1)
  • 2015 (6)
  • 2014 (13)
  • 2013 (9)
  • 2010 (7)
  • 2009 (2)

Topics

Copyright © 2021 · Kamalika Guha Roy, Powered by: Ebullientech