OSY Report
OSY Report
Operating Systems
A
MICRO-PROJECT REPORT
ON
Submitted by
1
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION
(ISO -9001-2008) (ISO/IEC 27001 – 2013)
Certificate
SUBMITTED BY –
2
Proposed Methodology
PART-A MICRO PROJECT PROPOSAL
3
8. Documentation: The documentation will be improved to
include clear, step-by-step instructions on installation,
configuration, and usage. This will enable users, regardless
of their level of expertise, to effectively utilize the tool.
4
Index
5
Abstract
The Linux Backup Manager is a shell script-based solution designed to
streamline and automate the backup process for Linux users. This report
explores the development and functionality of this simple yet effective backup
manager.
6
Introduction
In the dynamic landscape of digital information, the need for efficient
data backup and protection has never been more crucial. Linux, with its
open-source philosophy and robust command-line interface, has long been a
platform of choice for users seeking flexibility and control over their computing
environment. In this context, the Linux Backup Manager emerges as a
valuable asset, empowering users to safeguard their data effortlessly.
The Linux Backup Manager is built on the premise that data protection
should be accessible and user-centric. It recognizes that the Linux user
community consists of diverse individuals, ranging from tech-savvy
enthusiasts to those new to the platform. As such, the manager provides a
balance between simplicity and sophistication, catering to the needs of a
broad audience.
7
Acknowledgement
I would like to express my special thanks to my teacher Prof. Mundhe
sir who gave me the golden opportunity to test this wonderful project “Backup
Manager”. Which also helped me in doing a lot of research and I came to
know about so many new things. I am really thankful to them.
Secondly I would like to thank my parents and friends who helped me a
lot in finalising this project within a limited time frame.
I am doing this project not only for marks but to gain Knowledge. Last
but not least I would like to show gratitude to my classmates for being with me
and helping me in this Project.
8
Development Process
Developing a custom backup manager with shell scripting in Linux involves
several key steps to ensure the script is robust, secure, and meets your
specific backup requirements. Below, we'll outline the development process:
9
Thoroughly test your script in a safe environment before deploying it. Ensure
that it works as expected and handles errors correctly. Run it manually to see
how it behaves and schedule it using cron to simulate automated backups.
6. Security Considerations
Pay attention to security aspects. Ensure that the script runs with the
appropriate permissions and that sensitive information, such as passwords or
access credentials, is stored securely.
7. Deployment
Deploy the script on your Linux server or the system where you want to
manage backups. Set up a cron job to schedule regular backups as defined in
your backup requirements.
10
Program Code
#!/bin/bash
# Initialize the file array with contents from the configuration file
file=()
if [ -f "$config_file" ]; then
while IFS= read -r line; do
file+=("$line")
done < "$config_file"
fi
11
# Function to change the backup destination
adddestination() {
echo "Enter new Destination:"
read new_destination
destination="$new_destination"
echo "Destination changed to $destination"
save_config
echo
echo
}
echo
"__________________________________________________________"
echo "WELCOME TO BACKUP MANAGER"
echo
"__________________________________________________________"
while true; do
12
echo "Choose Option:"
echo "1. Add file to backup list"
echo "2. Add Backup destination"
echo "3. List the files in Backup list"
echo "4. Execute Backup Now"
echo "5. Exit"
read choice
case $choice in
1) addfile ;;
2) adddestination ;;
3) listfiles ;;
4) performbackup ;;
5) break ;;
*) echo "Invalid Choice!! Please Try Again!"
esac
done
13
Program Output
14
Conclusion
The Linux Backup Manager represents a significant contribution to the
Linux ecosystem, providing a user-friendly, script-based solution for data
backup and protection. In an age where data is the lifeblood of personal and
professional endeavors, the need for a reliable and customizable backup tool
cannot be understated. This report has delved into the development, features,
and usability of the Linux Backup Manager, demonstrating its value in
simplifying and enhancing the backup process for Linux users.
The tool's feedback and reporting system make it easy for users to
monitor the status of their backups in real time. This level of transparency
ensures that users can trust in the reliability and success of their backup
operations. Additionally, the ability to customize backup options, such as
compression and encryption, empowers users to tailor their backup strategy to
meet their specific data protection needs.
15
References
● https://manpages.ubuntu.com/manpages/focal/en/man8/backup-manag
er.8.html#:~:text=Backup%20Manager%20is%20an%20easy,%2C%20
mysql%20dumps%2C%20svn%20dump.
● https://ubuntu.com/server/docs/how-to-back-up-using-shell-scripts
● https://iq.opengenus.org/automated-backup-in-linux-using-shell-scriptin
g-and-crontab-scheduler/
16