cmd..pico.sh..and..rsync.w.links.not.files

· eog's pastes · raw

expires: 2026-03-03

  1## 2 pico.sh + prose.sh + ...
  2
  3### 3 domains
  4
  5https://eog.pastes.sh
  6https://eog.prose.sh
  7https://eog.pgs.sh
  8
  9
 10### 3 requirements
 11
 12
 13```bash
 14eval $(ssh-agent)
 15ssh-add +HOME+.ssh+id_ed255
 16cd /run/userdia/mabox/0500psspt/www..pico.sh..var.www/
 17```
 18
 19
 20### 3 dashboard
 21
 22
 23```bash
 24ssh pico.sh
 25```
 26
 27
 28### 3 pages w/ projects
 29
 30
 31```bash
 32ssh pgs.sh help
 33rsync -rv www..pico.sh..var.www/dir/ pgs.sh:tst     # eog-tst.pgs.sh
 34rsync -rv www..pico.sh..var.www/dir/ pgs.sh:/tst    # eog-tst.pgs.sh
 35ssh                                  pgs.sh ls      # list projects
 36```
 37
 38**THE subdomain 'user.pgs.sh'**
 39
 40https://pico.sh/pgs#reserved-user
 41
 42```bash
 43rsync -rv ./dir/      pgs.sh:user
 44rsync -rv ./dir/ user@pgs.sh:/user
 45```
 46
 47
 48**view projects**
 49
 50```bash
 51ssh pgs.sh ls               # list projects
 52ssh pgs.sh fzf $_project    # list content of projects
 53```
 54
 55### 3 pipe : chatting
 56
 57```bash
 58ssh pipe.pico.sh pipe chat   # on local AND remote
 59```
 60
 61.
 62
 632 Rsync w/ links but NOT copying these files
 64------------------------------------------------------------------------
 65
 66| Flag                  | Meaning                           | Effect                                          |
 67| --------------------- | --------------------------------- | ----------------------------------------------- |
 68| `-L` / `--copy-links` | Dereference                       | Replaces link with file; fails if file excluded |
 69| `--copy-unsafe-links` | Only copy safe ones               | Skips links outside tree                        |
 70| `--safe-links`        | Dont copy links pointing outside | Skips many absolute links                       |
 71| `--no-links`          | Dont copy links                  | Obviously drops symlinks                        |
 72
 73`--links`   # default in -a
 74
 75remove /storage/static-e1b9045b-d89a-4dbb-8a90-addcee48aac4/prose: directory not empty
 76
 77This is exactly what `--delete` is supposed to do  its just catastrophically dangerous when the source list is incomplete.
 78 Golden Rule: NEVER run `--delete` with shell globs (foo*, *.md, etc.)
 79
 80You must always give rsync a directory as the source.
 81
 82
 83 Correct + safe way to do only sync foo*, and delete remote foo* not local
 84
 85We need to:
 86. sync only files matching foo*
 87. delete remote foo* that dont exist locally
 88 . NOT delete unrelated files
 89
 90The safe way is to use filters, not shell globs.
 91
 92! Correct method: use `--include` / `--exclude` filters
 93
 94
 95
 96<!DOCTYPE html>
 97<html lang="en">
 98  <head>
 99    <meta charset="utf-8" />
100    <meta
101      name="viewport"
102      content="width=device-width, initial-scale=1"
103    />
104    <title>TST Semantic UI Template</title>
105    <link
106      rel="stylesheet"
107      href="styles.css"
108    />
109    <style>
110      body,
111      html {
112        height: 100%;
113        background-image: url(del.cms.dvn..charismemi..a.KpGjlkiP.erome.jpg);
114        background-position: bottom;
115        background-size: cover;
116        min-height: 100%;
117      }
118    </style>
119    <script
120      src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js"
121      crossorigin="anonymous"
122    ></script>
123    <link
124      rel="stylesheet"
125      href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css"
126    />
127  </head>
128  <body>
129    <div class="main">
130      <h4>Hello World !</h4>
131      <button
132        id="hi"
133        class="button-primary"
134      >
135        Say Hi !
136      </button>
137
138      <div
139        id="alert"
140        style="display: none"
141      >
142        <h4>Hello !</h4>
143      </div>
144      <img src="" />
145    </div>
146    <!-- script src="script.js"> </script-->
147  </body>
148</html>