From 0c0618178ff5786628d908b0f38ded51b0b4f84a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Feb 2014 11:48:27 +0530 Subject: [PATCH] ... --- setup/file_hosting_servers.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/file_hosting_servers.rst b/setup/file_hosting_servers.rst index 6ccf83286f..dde34980c3 100644 --- a/setup/file_hosting_servers.rst +++ b/setup/file_hosting_servers.rst @@ -24,9 +24,11 @@ scp .zshrc .vimrc server: scp -r ~/work/vim/zsh-syntax-highlighting server:work/vim scp -r ~/work/vim/zsh-history-substring-search server:work/vim cd /usr/local && git clone https://github.com/kovidgoyal/calibre.git +echo '#!/bin/sh\ncd /usr/local/calibre && git pull -q' > /usr/local/bin/update-calibre && chmod +x /usr/local/bin/update-calibre Add the following to crontab:: @hourly /usr/bin/python /usr/local/calibre/setup/plugins_mirror.py + @hourly /usr/local/bin/update-calibre If the server has a backup hard-disk, mount it at /mnt/backup and edit /etc/fstab so that it is auto-mounted. Then, add the following to crontab::