Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beyondmayowo/backup-password
Script to automatically back up any encrypted password files that have been updated in the past 24 hours
https://github.com/beyondmayowo/backup-password
backup-password bash scripting shell-scripting
Last synced: 16 days ago
JSON representation
Script to automatically back up any encrypted password files that have been updated in the past 24 hours
- Host: GitHub
- URL: https://github.com/beyondmayowo/backup-password
- Owner: beyondmayOwO
- Created: 2024-10-12T17:18:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T15:32:39.000Z (3 months ago)
- Last Synced: 2024-12-16T11:05:33.373Z (16 days ago)
- Topics: backup-password, bash, scripting, shell-scripting
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backup-password
This is the final project for IBM DevOps and Software Engineering Professional Certificate.## Scenario
Imagine that you are a lead Linux developer at the top-tech company ABC International Inc. ABC currently suffers from a huge bottleneck: each day, interns must painstakingly access encrypted password files on core servers and back up any files that were updated within the last 24 hours. This process introduces human error, lowers security, and takes an unreasonable amount of work.As one of ABC Inc.'s most trusted Linux developers, you have been tasked with creating a script called backup.sh which runs every day and automatically backs up any encrypted password files that have been updated in the past 24 hours.
## What I Learned
- Check if the number of arguments is correct
- Check if argument 1 and argument 2 are valid directory paths
- Go into the target directory
- Create the backup files
- Move the backup files to the destination directory
- Compress and archive the files
- Backup the important-documents folder every 24 hours to the project directory