Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
#!/bin/bash | |
set -e # Terminate if script has error | |
#################################################################### | |
# Variables used | |
#################################################################### | |
sitedir="" | |
fqn="" |
I hereby claim:
To claim this, I am signing this object:
_________ _____ _______________ _____
\_ ___ \\ \\___________ \____ / ____\ ~/.bash/cliref.md
/ \ \/| | | || _/ __ \ __\ copy/paste from whatisdb
\ \___|__ |_|_ || | \ __/|_ | http://pastebin.com/yGmGiDQX
\________ /_____ \_||____|_ /____ /_| yunga.palatino@gmail.com
20160515 \/ 1527 \/ \/ \/
alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'
diff --git configure configure | |
index e39c16eee2..2455870bf8 100755 | |
--- configure | |
+++ configure | |
@@ -5202,10 +5202,6 @@ $as_echo "$as_me: | |
" >&6;} | |
fi | |
- | |
-MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
Das Programm »Restic« ist ein modernes Backup-Programm, welches als Speicherort sowohl lokale Verzeichnisse als auch per Netzwerk erreichbare Speicher (Online-Speicher) nutzen kann. Der Autor von »Restic« zeigt in anschaulicher Weise in zwei Videos viele Details zur Arbeitsweise seines Programms: »FOSDEM 2015« (2015-01-28) und »CCCCologne« (2016-01-29).
Im Folgenden soll gezeigt werden, wie man unter Linux automatische Backups mit »Restic« einrichten kann. Als Speicherort wird per WebDAV-Protokoll erreichbarer Online-Speicher genutzt. Sinngemäß können die Hinweise aber auch auf andere Speicherorte übertragen werden. Getestet wurde unter »openSUSE« und »Linux Mint« (»Ubuntu«), wobei aber auch alle anderen systemd-basierten Linux-Distributionen in derselben Art oder mit geringfügigen Änderungen geeignet sind.
clear | |
############## | |
# Am I root? # | |
############## | |
if [ "x$(id -u)" != 'x0' ]; then | |
echo 'Error: this script can only be executed by root.' | |
echo 'Try re-run the script after switched to root account by type "sudo su"' | |
exit 1 | |
fi |
#!/bin/bash | |
printf " | |
#################################################################### | |
# Tested with following setup: # | |
# Ubuntu 20.04 (LTS) x64 droplet on digitalocean with a cloudflare # | |
# managed domain pointing to the droplet's external IP. Please # | |
# follow the steps commented in init.sh: # | |
####################################################################\n" | |
# ssh root@1.2.3.4 (IP of droplet) | |
# wget https://gist.github.com/ginmaster/c6d11697c4fa67442889f379380ba6c0/raw/d58f803e731eadf3d2bb0951ff1c0e6d7d18ef69/init.sh |