Automatic backup of changed text files using Mercurial (TortoiseHG)
I would like to set up an automatic backup of changed/saved text files using Mercurial. I already use the TortoiseHG as a collaboration tool with my colleague so I commit and synchronise the changes regularly. On top of it, I would like to have a "real time silent commit" as a backup tool just in case if anything goes wrong and I forget to commit manually. On开发者_高级运维 the other hand I probably do not want to see those regular commits in the repository explorer as there would be thousands of them and it would be a mess.
Is there any best practise how to do that?
Why not just a crontab with at 22:00 an rsync of your local working copies to an rsync server? If you have unpushed work, you know that it is also copied in an other place.
I don't think Mercurial is a good use case for this. Perhaps a backup tool like Second Copy or SuperFlexible or... would be a better fit.
You could probably write a plugin for HG that monitored file changes, but it certainly wasn't designed for that.
精彩评论