#!/bin/bash # 20120920 IWT purpose: push history files to central server node=$(uname -n | cut -d. -f1) if [[ -d /root/history ]] then echo "rsync -ar /root/history/ rsync://isaac.lsu.edu/history-${node}/" rsync -ar /root/history/ rsync://isaac.lsu.edu/history-${node}/ fi if [[ -d /root/.history ]] then echo "rsync -ar /root/.history/ rsync://isaac.lsu.edu/history-${node}/" rsync -ar /root/.history/ rsync://isaac.lsu.edu/history-${node}/ fi if [[ -f /root/.history ]] then echo "rsync /root/.history rsync://isaac.lsu.edu/history-${node}/history-hid" rsync /root/.history rsync://isaac.lsu.edu/history-${node}/history-hid fi if [[ -f /root/.bash_history ]] then echo "rsync /root/.bash_history rsync://isaac.lsu.edu/history-${node}/bash_history-hid" rsync /root/.bash_history rsync://isaac.lsu.edu/history-${node}/bash_history-hid fi