kopia lustrzana https://github.com/km4ack/pi-build
Update backup-bap
rodzic
528a35e147
commit
77c22ae2ce
|
@ -31,6 +31,11 @@ day=$(date +%A)
|
|||
hostname=$(hostname -s)
|
||||
archive_file="BAP-Backup-$hostname-$day.tgz"
|
||||
|
||||
#make some extra backup notes abnout the repo we have currently
|
||||
echo -e "\n\nBAP Backup Log for $($BACKUP_PATH/$archive_file)"
|
||||
echo -e "$(cd pi-build/ && git branch)\n" >> ${HOME}/BAP-backup-log.txt
|
||||
echo -e "$(git show --pretty=medium | head -7)\n" >> >> ${HOME}/BAP-backup-log.txt
|
||||
|
||||
# Print start status message.
|
||||
echo -e "\nBacking up $backup_files to $BACKUP_PATH/$archive_file \n\n"
|
||||
date
|
||||
|
|
Ładowanie…
Reference in New Issue