Miniproject Report Format-1
Miniproject Report Format-1
Submitted by
JEYASHANCHITHA J (RA2211003020043)
SOHAN (RA2211003020052)
SAKSHI (RA2211003020049)
Dr. MANIRAJ S P
BACHELOR OF TECHNOLOGY
in
RAMAPURAM, CHENNAI-600089
OCTOBER 2023
1
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
BONAFIDE CERTIFICATE
Certified that the Mini Project titled “FILE BACKUP UTILITY” is the bonafide
certificate of JEYASHANCHITHA J RA2211003020043, SOHAN
RA2211003020052, SAKSHI RA2211003020049 of II Year CSE/Specialization
submitted for the course 21CSC202J Operating Systems for the Academic Year 2023
– 24 Odd Semester.
SIGNATURE
Assistant Professor
Computer Science & Engineering
SRM Institute of Science and
Technology Ramapuram, Chennai.
2
SCOPE AND OBJECTIVE:
2. PURPOSE: Describe the primary aim of the File Backup Utility, which is to ensure
the safety and accessibility of critical data.
3. OBJECTIVE: List the specific goals of the File Backup Utility, such as data
protection, disaster recovery, and efficient file management.
4. SCOPE: Define the boundaries of the File Backup Utility, specifying what data it
covers, which platforms it supports, and the intended user base.
3
6. SYSTEM REQUIREMENTS: Detail the hardware and software prerequisites
necessary for using the File Backup Utility effectively.
8. DATA RESTORATION PROCESS: Describe how users can recover data from
backups, focusing on ease of use and ensuring minimal downtime.
9. CONCLUSION: Summarize the importance of the File Backup Utility in data
management and emphasize its role in safeguarding critical information.
4
DESCRIPTION
Introduction:
A file backup utility is an essential tool for individuals and organizations to ensure the
safety and security of their digital data. In this comprehensive guide, we will explore the
concept of file backup utilities, their importance, and how they function to safeguard
your files and data.
Definition: A file backup utility is software designed to create copies of digital files,
documents, and data to protect against data loss, hardware failure, accidental deletion, or
other unforeseen events.
Purpose: The primary purpose of a backup utility is to provide a safety net for your
valuable data, ensuring it can be restored in case of emergencies.
Data Loss Prevention: They prevent the loss of important data due to various factors,
such as hardware failures, software errors, and user mistakes.
Disaster Recovery: File backup utilities are essential for disaster recovery, allowing
users to recover their data after catastrophic events like fires, floods, or cyberattacks.
5
Peace of Mind: Users can work without worry, knowing that their files are protected
and can be restored at any time.
Explanation: A full backup utility copies all selected files and data in their entirety. It
provides complete data redundancy but consumes more storage space.
Explanation: Incremental backups only copy the data that has changed since the last
backup. They save storage space but may require more time for data restoration.
Explanation :Differential backups capture all changes since the last full backup,
making restoration faster than incremental backups.
3.2 Encryption:
6
Explanation: Many backup utilities offer encryption options to secure backed-up data
from unauthorized access.
3.3 Compression:
Explanation: Data compression reduces the size of backups, saving storage space and
speeding up the backup process.
Explanation: A built-in utility for Windows OS, it allows users to create backups of
files and system images.
Explanation: Time Machine is an integrated backup utility for macOS that offers
easy, automatic, and incremental backups.
Explanation: Acronis True Image is a comprehensive backup utility with features like
disk cloning and cloud backup.
7
5.1 Regular Backups:
Explanation: It's crucial to establish a routine for backups, ensuring that data is up to
date and readily restorable.
Explanation: Store backups in multiple locations, including external drives and cloud
storage, to enhance redundancy.
Conclusion:
File backup utilities are indispensable tools for safeguarding your digital files and data.
They offer a layer of protection against data loss and ensure business continuity in times
of crisis. By understanding the types, features, and best practices associated with these
utilities, you can ensure the safety and accessibility of your digital assets
8
IMPLEMENTATION
import pickle
import os.path
from googleapiclient.discovery import build
from google_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from apiclient.http import MediaFileUpload
import os
class MyDrive():
def__init__(self):
# If modifying these scopes, delete the file token.pickle
SCOPES =["https://www.googleapis.com/auth/drive ']
“””Shows basic usage of the Drive v3 API.
Prints the names and ids of the first 10 files the user has access to.
“””
creds = None
#The file token.pickle stores the user's access and refresh tokens, and is
# created automatically when the authorization flow completes for the first
#time.
if os.path.exists("token.pickle'):
creds pickle.load(token)
#If there are no (valid) credentials available, let the user log in.
flow = InstalledAppFlow.from_client_secrets_file(
'credentials.json' , SCOPES)
results = self.service.files().list(
if not items:
else:
print("Files:')
spaces='drive',
pageToken=None).execute()
if len(response[‘files’]) == 0:
file_metadata= {
'name': filename,
'parents':[ folder_id]
}
# Process change
update_file = self.service.files().update(
fileId=file.get('id'),
media_body=media,
).execute()
print(f'Updated File')
def main():
path= ”c:/Users/programmer/Desktop/Backup/”
files = os.listdir(path)
11
my_drive= MyDrive()
#my_drive.list_files()
OUTPUT
12
13
14
15
In this code:
• source_directory should be replaced with the path to the directory you want to
back up.
• destination_directory should be replaced with the path where you want to store
the backup copies.
When you run this code, it will copy all the files from the source directory to the
destination directory, effectively creating a backup. The shutil.copy2 function is used to
copy the files while preserving their metadata (timestamps, permissions, etc.).
Ensure that you have appropriate permissions to read from the source directory and
write to the destination directory. Additionally, you may want to add error handling and
more advanced features depending on your specific use case.
16
RESULT:
In conclusion, a file backup utility is a vital component of digital data
management for individuals, businesses, and organizations. Its role in data protection,
disaster recovery, and peace of mind cannot be overstated. By regularly employing
backup strategies such as full, incremental, or differential backups, scheduling
automated backups, and utilizing encryption and compression, users can ensure the
safety and integrity of their critical data.
The availability of various backup utilities, both integrated into operating systems and
third-party options, empowers users with flexibility and choice in safeguarding their
information. Whether you rely on Windows Backup and Restore, Time Machine for
macOS, or more comprehensive solutions like Acronis True Image, the key is to
establish a backup regimen that suits your specific needs and preferences.
17
THANK YOU
18