Forum Moderators: bakedjake
I just want a backup script that will backup my copy of homepage.php and name it homepageMMDDYY.php
I thought it was this but it doesn't seem to be working.
Am I doing something wrong? Thanks:
#! /bin/bash
currdate=`date +%y%m%d`
cp /www/homepage.php /www/homepage.$currdate.php