diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-12 14:12:08 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-12 14:12:08 +0100 |
commit | e1a732b03c5567fddd019cfff0fb90f2d8cddb0d (patch) | |
tree | 2f3e48935442793644b7c4680e99d66cae80e316 /Västgöta | |
parent | ons 11 jan 2023 09:14:01 CET (diff) | |
download | wiki-public-e1a732b03c5567fddd019cfff0fb90f2d8cddb0d.tar.gz wiki-public-e1a732b03c5567fddd019cfff0fb90f2d8cddb0d.tar.xz |
tors 12 jan. 2023 14:12:07 CET
Diffstat (limited to 'Västgöta')
-rw-r--r-- | Västgöta/Stupandator.wiki | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Västgöta/Stupandator.wiki b/Västgöta/Stupandator.wiki new file mode 100644 index 0000000..f6fe3bf --- /dev/null +++ b/Västgöta/Stupandator.wiki @@ -0,0 +1,53 @@ +== Kassasystem == +https://git.lysator.liu.se/hugo/stupan + +{{{sh +vastgota@balder:~$ cat /etc/apt/sources.list.d/adrift-space.list +deb [allow-insecure=yes] http://repo.adrift.space/debian una main +deb-src [allow-insecure=yes] http://repo.adrift.space/debian una main +}}} + +== Musik == + +=== /etc/mpd.conf === +{{{ + +music_directory "/home/vastgota/Musik/Music" + +audio_output { + type "pulse" + name "My Pulse Output" + server "localhost" +} + +== Backup == +`~/Stupan-Backup` + +crontab varje dag 12:00 + +=== ~/Dokument/Backup/ === +{{{bash +#!/usr/bin/env bash + +files=( + ~/.stupan/stupan.db + ~/Skrivbord/"Kreditsystem Glöm inte och SPARA.ods" +) + +dests=( + ~/Stupan-Backup + stupan-backup@vastgota.nation.liu.se:Stupan-Backup +) + +for f in "${files[@]}"; do + filename=$(basename -- "$f") + extension="${filename##*.}" + filename="${filename%.*}" + destname="${filename}-$(date -I).${extension}" + for dest in "${dests[@]}"; do + rsync --protect-args "$f" "${dest}/${destname}" + done +done +}}} + + |