Script to Backup All Directories in Web Root in Ubuntu 14.04

January 25th, 2016

First of all, Happy New Year to each and everyone of you. I wish you success, good health and great sex in 2016.

Now with that out of the way, I wanted to write a script to backup all the directories in my web root on my Ubuntu 14.04 server because I accidentally sudo rm -rf /var/www/* but stopped the process before too much damage was done.

Read the rest »