11 lines
288 B
Bash
Executable File
11 lines
288 B
Bash
Executable File
DATE=/bin/date
|
|
TAR=/bin/tar
|
|
TIMESTAMP=`$DATE +%Y%m%d-%H:%M%z`
|
|
|
|
LOG=/mnt/hdd/backup/backup.git.$TIMESTAMP.log
|
|
echo Starting $LOG | tee -a $LOG
|
|
echo start `$DATE` | tee -a $LOG
|
|
$TAR -cjvf /mnt/hdd/backup/git.$TIMESTAMP.tar.bz2 /home/vahagn/git | tee -a $LOG
|
|
echo end `$DATE` | tee -a $LOG
|
|
|