digital-garden-anabasis/pages/_INFORM/sdbs_selfhosting.md
sdbs Terra a098482df6 Revert "Automatic update, changed: 000_start-here.md, ALEADUB.md, Algorithmic Editing.md, EDL.md, Pasted image 20201009004929.png, Speed and Information Cyberspace Alarm.md, To Follow.md, Untitled.md, UpEnd.md, _INFORM/audio_101.md, _INFORM/avg.md, _INFORM/consumer_habits_good.md, _INFORM/docs.md, _INFORM/ffmpeg.md, _INFORM/firefox.md, _INFORM/ipfs.md, _INFORM/linux_tips.md, _INFORM/manuals.md, _INFORM/ninjam.md, _INFORM/obs.md, _INFORM/online_toolbox.md, _INFORM/prg-wt.md, _INFORM/reaper.md, _INFORM/s.m.a.r.t.md, _INFORM/sdbs_selfhosting.md, _INFORM/start.md, _INFORM/supercollider.md, _INFORM/syncthing.md, _INFORM/telegram.md, _INFORM/video_101.md, algo_edit.sync-conflict-20201210-130019-LKWM2F3.md, algo_edit.sync-conflict-20201211-230839-LKWM2F3.md, anarcheology.md, annotation.md, archivebox.md, archives in art history.md, artificial intelligence.md, artificial intelligence.sync-conflict-20201224-142912-HIYJI7N.md, atlas_mnemosyne_desc.png, backlinks.md, bicameral_idea.png, bookmarking.md, codes.md, data_wisdom_panel.png, decentralization.md, dendron.md, dg_scheme.png, digital garden.md, discuss_sum.png, docdrop_screenshot.png, fediverse.md, feedfarm.md, filesystem.md, filetag.md, flat-file.md, folder_scheme.png, hypertext.md, image annotation.md, interface.md, knowledge graph.md, knowledge managment.md, lalalala.png, lalar.md, magenta.md, magnet links.md, map.md, mapping_language.png, markdown.md, mastodon.md, media annotation.md, mediamateriality.md, memory.md, mermaid.md, music notation.md, obsidian.md, openAI.md, opio_viewer.png, parallel textface.md, pg_backup.md, playlist.md, portfolio cms.md, portfolio generator.md, self-hosting.md, sermon.md, speednote.md, stream.md, syncthing.md, tags-tallguyjenks.md, tagspaces.md, upend_notes_tmp.pdf, vault.md, wikipedia.md"
This reverts commit 3818cda9f9.
2020-12-26 12:28:32 +01:00

1.3 KiB
Executable file

sdbs_selfhosting

TMP

  1. sdbs backups syncthing
  2. ipfs
  3. torrent
  4. pile
  5. klastr

Structure proposal

===== Intro =====
==== Project list ====
===== Essential =====
==== Tool list ====
===== Advanced =====

CHAOS

IPFS

The script for autopinning:

set -ex
cd
pwd
mkdir -p ipfs
cd ipfs

echo '
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd "${DIR}"

for url in "https://pile.sdbs.cz/api/ipfs_cids" "https://inform.sdbs.cz/ipfs_cids.php";do
        echo "Loading ${url}..."
        for cid in $(curl -s $url|sort -R);do
                ipfs get "${cid}" && ipfs pin add --progress "${cid}"
        done
done
' > update_pins.sh
chmod +x update_pins.sh

echo "30 */6 * * *  $(whoami)   ipfs name publish --key=gunk Qmb6WJzMereTNCMh1drjepq3wEn9r6HkBZKadc7CFwf98V" |sudo tee /etc/cron.d/ipfs

set +x
echo "Set-up complete. To update ipfs pins now, run ./update_pins.sh"

Copy and paste this into some file, then run it with bash. It will set up periodic autopinning.