Added time to filename

master
Vyacheslav N. Boyko 10 years ago
parent 5a10e45eb4
commit 750c98115e
  1. 2
      bup.sh

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

Loading…
Cancel
Save