Directory Backup with Rotation
The script will create timestamped backup folders and copy all the files from the specified directory into the backup folder.
Additionally, the script will implement a rotation mechanism to keep only the last 3 backups.
#!/bin/bash
#This script will...
learnwithimran.hashnode.dev2 min read