Backup/Restic: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Created page with "==Backup » Restic== {|class='wikitable mw-collapsible' style='width:100%' !scope='col' style='text-align:left'| Backup » [https://restic.net/ Restic] |- |valign='top'| {|class='wikitable mw-collapsible mw-collapsed' style='width:100%;margin:3px 0 3px 0' !scope='col' style='text-align:left'| Restic » Install |- |valign='top'| <syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> cat <<'EXE' | sudo bash apt-get update apt-get install -y restic restic version apt-get..."
 
Line 23: Line 23:
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'>
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'>
cat <<'EXE' | sudo bash
cat <<'EXE' | sudo bash
echo
RESTIC_ARCH="$(echo "$(uname -s)_$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')"
RESTIC_HOME="/opt/cli/$(echo "restic-$(uname -s)-$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')"
RESTIC_VERSION=$(curl -s https://api.github.com/repos/restic/restic/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -fsSLo restic.bz2  https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${RESTIC_ARCH}.bz2
bzip2 -fd  restic.bz2  && install restic /usr/local/bin
rm  -rf    restic.bz2  restic
EXE
EXE



Revision as of 15:29, 1 December 2025

Backup » Restic

Backup » Restic

Restic » Install

cat <<'EXE' | sudo bash
apt-get update
apt-get install -y restic
restic version
apt-get clean
EXE
cat <<'EXE' | sudo bash
RESTIC_ARCH="$(echo "$(uname -s)_$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')"
RESTIC_HOME="/opt/cli/$(echo "restic-$(uname -s)-$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')"
RESTIC_VERSION=$(curl -s https://api.github.com/repos/restic/restic/releases/latest | grep -Po '"tag_name": "v\K[^"]*')
curl -fsSLo restic.bz2   https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${RESTIC_ARCH}.bz2
bzip2 -fd   restic.bz2   && install restic /usr/local/bin
rm   -rf    restic.bz2   restic
EXE

which restic
restic version

Restic » Config

cat <<'EXE' | sudo bash
echo
EXE

Restic » Backup

cat <<'EXE' | sudo bash
echo
EXE

References

References