Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App
Next Article:
Backup and Restore
Next article icon

Backup and Restore

Last Updated : 16 Jun, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

Computer security is the safeguarding of computer systems and data against theft, and illegal access, or against any disaster. It's the method of guarding against and detecting illegal access to your computer system. Data security refers to the process of securing data from illegal access or any disaster. This process includes the following terms:

  • Data backup
  • Data Recovery

Data Backup

Data backup is the process of storing additional copies of your data in physical or virtual locations distinct from your data files in storage. Typically, backup data includes all the data - documents, media files, configuration and registry files, machine images, etc. required to perform the workload on your server. In essence, any data that you desire to keep can be saved as backup data.

The main goal of backup is to generate a copy of the data that can be recovered if the primary data fails. Failure can be - hardware or software failures, data corruption, or a human-initiated event such as an attack (virus or malware) or data deletion by an accident.

The act of backing up your data in the case of a loss and putting up secure mechanisms that allow you to recover your data, as a result, this process is known as data backup and recovery. It copies and preserves data in order to keep it available in the event of data loss or damage. Suppose you have backed up your data, so you can only recover data from a previous point in time. Data backup is a type of disaster recovery that should be included in every plan for disaster recovery.

Backup copies should be made on a constant, regular basis for optimal outcomes, since this will reduce the amount of data lost between backups. When recovering from a backup, the longer the gap between backup copies, the greater the risk of data loss.

Note - Even if you back up your data, you may not be able to restore all of your system's data and settings.

Types of Backups:

1. Full Backup: As the name implies, backs up each and every file and folder (hard drives and more) on the system. As the backup is full and complete, it takes longer time and takes up more space than other backup options, but the process of recovering lost data from backup is much faster.

2. Differential Backup: These backups begin with a full backup, which saves all of your files. Then differential backups are performed, which save only the data that has changed since the previous full backup. This saves a lot of time and resources compared to doing continuous full backups. Its backups only save changes to files that changed as compared to the previous backup and it also makes a copy if new files if any. It also provides for a speedier restore time than incremental although it requires more storage space.

3. Incremental Backup: An incremental backup is similar to a differential backup, but it only includes the data that has changed since the last backup. The differential backup, on the other hand, includes all data since the previous complete backup. Although incremental backups need the least amount of storage space, they can take longer to retrieve data because they must be executed independently during a recovery. However, because they are significantly smaller than full or differential backups, they usually require less restoral time.

4. Network Backup: It backs up a file system from one machine onto a backup device connected to another machine. It is referred to as a remote or network backup.

Note: The restoration speed of Full Backup is fastest, but its backup speed is the slowest. Backup speed for incremental is fastest and it requires low memory but its restoration speed is the slowest.

Backup Devices:

You can take backup of your data on any of the following devices:

1. CD and DVD: Because they have a small capacity ranging from 1000's of MB to a few GB, they are utilized for home/personal use where users can save their papers, primarily personal or office-related papers.

2. USB sticks: USB sticks are small in size and cost, but they're big in storage capacity; you can obtain up to 128 gigabytes on a USB stick. They are small in size but have a good transfer speed.

3. USB Drives: This sort of drive has a size range of 500MB to 2TB and is compatible, and normally includes backup and recovery software. Encryption, convenient automatic backups, and a cloud backup option are all included in many models. The cost is high.

4. Solid-state drives (SSDs): They are more expensive than hard drives, but they're also more reliable, smaller, faster, and consume less power. SSDs are ideal for applications where a speed improvement is worthwhile, such as system files or multimedia production.

5. NAS (network-attached storage): A network-attached storage is a file storage device that delivers centralized, consolidated disc storage to local-area network (LAN) users via a normal Ethernet connection. NAS allows a network with servers to add more hard disc storage capacity without having to shut them down for maintenance and updates. You can use it solely for backups, or you may use it for file sharing and streaming of multimedia as well.

Data Recovery 

Data recovery, often known as a restore, is required when data of any sort is no longer readable or has been corrupted by a malicious alteration. The act, process, or occurrence of recovering data following inadvertent loss or corruption is known as recovery. The cost of recovering data is high.

Causes Of Data Recovery:

Businesses might lose data in a variety of ways. Mistakes in technology can sometimes result in data loss that is irreversible. Other times, hackers manage to breach or evade a company's defense, taking data for their malevolent purposes or draining the company's resources. The following are the most prevalent reasons for data loss:

1. Virus/Spyware/Malware attack.

2. Natural calamities

3. Hardware Failure

4. Human errors.

5. Manipulation in software etc.

Sample Problem

Question 1. Do the backup process affects the performance of the internet?

Solution:

Online backup use cutting-edge technology to reduce the influence on your computer's and internet's performance. This ensures that you may keep working while the backup is taking place. Most backups are performed late at night to reduce the impact on your normal internet and PC usage. During business hours, bandwidth can be throttled to reduce the impact of a big backup on your end users.

Question 2. Compare and contrast different backup types.

Solution:

There are 3 types of backup types : 

  1. Full backup
  2. Differential  backup
  3. Incremental  backup

They can be differentiated in terms of :

  • Data Backup : In full backup, all data is backup while in differential  backup, all data since last full is backup & in incremental only new/modified files/folders are backup.
  • Backup time: Time for  Full backup is the most, moderate for differential backup & lowest for incremental  backup.
  • Restore Time: Time to restore the data in  Full backup is the lowest, for differential backup is also low & moderate for  incremental  backup.
  • Storage space:  In full backup, memory requirement is the most while in differential  backup, memory requirement is moderate & in incremental , this requirement is the least.

Question 3. What kind of data is needed to be backup?

Solution:

You should back up anything that can't be replaced if it's lost as a starting point. Individuals may be affected by the following factors:

  • Photographs
  • Excel Spreadsheets
  • Documents
  • Videos available.
  • Files containing music
  • e-mail
  • Databases having financial information
  • Address Books

Data backups for businesses get a little more sophisticated — think of backing up customer databases, configuration files, machine images, operating systems, and registry files — and they're usually managed by an IT department.

Question 4. What are the causes for data recovery?

Solution:

The following are the cause of data recovery:

1. Virus/Spyware/Malware attack.

2. Natural calamities

3. Hardware Failure

4. Human errors.

5. Manipulation in software etc.

Question 5. List the device that can be used for backup of data.

Solution:

The devices that are used to backup data are:

  • CD and DVD
  • USB Stick
  • USB Drives
  • SSD
  • NAS

Next Article
Backup and Restore

S

sameekshakhandelwal1712
Improve
Article Tags :
  • Computer Science Fundamentals
  • School Learning
  • Class 7

Similar Reads

    MongoDB - Backup and Restoration
    MongoDB, a leading NoSQL database, is known for its flexibility, scalability, and ease of use. However, like any database, MongoDB is susceptible to data loss due to hardware failures, software issues, human errors, or even cyberattacks. Database backup and restore processes are critical for maintai
    6 min read
    WordPress Backup & Restore
    Ensuring your WordPress website is regularly backed up and can be easily restored is crucial for maintaining the integrity and continuity of your online presence. This article will walk you through the importance of backups, how to back up your site, and the steps to restore it.Why Backup Your WordP
    4 min read
    AWS S3 Backup
    In the present advanced scene, where data is the backbone of organizations and people alike, ensuring its safety, accessibility, and flexibility is central, With the developing volumes of information being created and the rising risk of data loss because of different factors like hardware failure, h
    10 min read
    Amazon RDS - Working with Backups
    This article aims to make you aware of "Working with Backups" on Amazon RDS. The prime objective of backups is to create a copy of our data that can be recovered in situations like data failure, data theft, and so on. As we all know, RDS deals with a lot of crucial data and there can be chances of d
    4 min read
    How to Back Up and Restore Data in Linux?
    Backing up and restoring data in Linux is essential for ensuring the security and integrity of your files and system. Whether you're safeguarding personal data or managing critical system files, having a reliable backup strategy is crucial. Linux offers various methods and tools for creating backups
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences