* Tong Sun <suntong@xxxxxxxx> wrote: Hi, > How feasible it is to mirror a plain directory and put it under git > revision control (leaving the original intact)? Probably you'll want to have the .git dir outside of /etc, so --git-dir and --work-dir are your friend (man 1 git). An cron-script could look something like that: #!/bin/bash cd /var/my-etc-archive.git && \ git --work-dir=/etc add -A && \ git --work-dir=/etc commit -m "autocommit" && \ git push origin (perhaps filter the output a bit, so you don't get unncessary cron mails ;-)) cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@xxxxxxxx mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ---------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html