executable_mjru-fetch-history 264 B

123456789
  1. #!/bin/sh
  2. for file in /root/.bash_history /root/.mysql_history; do
  3. ansible majordomo -m fetch -a "src=$file dest=$HOME/ansible-out/files fail_on_missing=no" -b
  4. done
  5. git -C "$HOME/ansible-out/files" add -A
  6. git -C "$HOME/ansible-out/files" commit -m 'Update.'