Professional Documents
Culture Documents
TechSolutions Inc.
Enhancing File Management, Backup, and Automation
File System Organization
Findings:
◦ Created a directory structure with
dedicated folders for Documents,
Backups, and Applications.
Challenges Faced:
◦ Ensuring the correct permissions for
each directory.
◦ Deciding on an appropriate location for
the server files.
Solutions Implemented:
◦ Utilized the mkdir command with the -p
option for creating nested directories.
◦ Chose /srv/TechSolutions as the root
directory.
Effective Data Analysis with VIM
vim filename.sh => to create a new shell script
vim /opt/TechSolutions/filesearch.sh
Add the following content to filesearch.sh:
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <keyword>"
exit 1
fi
keyword="$1"
grep -rn "$keyword" /opt/TechSolutions/Documents
◦ Make the script executable : chmod +x filesearch.sh
./filesearch.sh memo or bash filesearch.sh
◦ usuage : filesearch.sh "TechSolutions"
◦ chmod +x create_techsolutions_structure.sh
◦ ./create_techsolutions_structure.sh
Using Nginx Web Server
Discuss the importance of setting up a trusted web server and
selecting Nginx for it.
Installation: Describe the steps taken to install Nginx using
detail the cron tasks you will use to run backup scripts at 2
am each night.
Improved Server Performance
Summarize progress and improvements in the overall
environment.
Summary: Review implemented solutions for file management,