Posts

Showing posts from May, 2017

Script for 7 days backup

#!/bin/bash today=$(date +%u) tomorrow=$(date --date='tomorrow' +%u) cd BACKUP_PATH mkdir $today mv THE_BACKUP $today rm -r $tomorrow