#!/bin/bash current_time=`date +%Y-%m-%d-%H:%M:%S` echo $current_time backup_dir_name=backups-$current_time backup_dir=/opt/your_backup_dir_location/$backup_dir_name echo "Creating the backup directory $backup_dir" mkdir $backup_dir echo "backupdir = $backup_dir" echo sleep 2
No comments:
Post a Comment