Added time to filename

master
Vyacheslav N. Boyko 2013-03-19 15:07:03 +04:00
parent 5a10e45eb4
commit 750c98115e
1 changed files with 1 additions and 1 deletions

2
bup.sh
View File

@ -5,7 +5,7 @@ if [ $# -eq 0 ]; then
exit; exit;
fi; fi;
DATE=`date +%Y%m%d`; DATE=`date +%Y%m%d-%H%M`;
if [ -f "$1" ]; then if [ -f "$1" ]; then
cp $1 $1.$DATE.bup; cp $1 $1.$DATE.bup;