You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install 428B

123456789101112131415161718192021
  1. #! /usr/bin/env sh
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. cp "${dir}/git-backup" /usr/local/bin &&
  4. if [ ! -x /etc/cron.d/git-backup ]
  5. then
  6. if [ ! -x /etc/git-backup.conf ]
  7. then
  8. cp "${dir}/git-backup.conf" /etc/git-backup.conf
  9. fi &&
  10. if [ ! -x /etc/cron.d/git-backup ]
  11. then
  12. echo "00 2 * * * root git-backup > /dev/null" > /etc/cron.d/git-backup
  13. fi &&
  14. service cron reload
  15. fi &&
  16. git-backup --init