1. Robot Mirror
  2. rirror

Commits

anatoly techtonik  committed 6da06c7

Change the steps order and add server roles.

  • Participants
  • Parent commits b813f28
  • Branches default

Comments (0)

Files changed (1)

File README.txt

View file
+Server Map:
+
+  [mirror] --pull from-- [original]
+  [mirror] --push to  -- [target]
+
 --[001: Quick Hack: Linux Way]--
 0. setup new account
-1. create shell script
+    - create new user on mirror site
+    - setup account on push site
+1. setup SSH key for new account
+    ssh-keygen -t rsa -b 4096
+   - add public part to push site
+2. do the first clone
+    mkdir /home/account/mirror
+    hg clone https://.../... .
+    hg sum
+3. setup push site
+    vim .hg/hgrc
+   - add default-push to [paths]
+   - add username to [ui]
+3. create shell script
     cd /home/account/mirror
     hg pull
     hg push
-2. setup SSH key for new account
-    ssh-keygen -t rsa -b 4096
-   - add public part to push site
-3. do the first clone
-    mkdir /home/account/mirror
-    hg clone https://.../... .
-    hg sum
 4. setup cron job
    - make sure using full path to shell script
    - hardcode sync every 15 minutes