Backup/Restic: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Backup » Restic== | ==Backup » Restic== | ||
{|class='wikitable mw-collapsible | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left'| | !scope='col' style='text-align:left'| | ||
Backup » [https://restic.net/ Restic] | Backup » [https://restic.net/ Restic] | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
{|class='wikitable mw-collapsible mw-collapsed | {|class='wikitable mw-collapsible mw-collapsed' | ||
!scope='col' style='text-align:left'| | !scope='col' style='text-align:left'| | ||
Restic » Install | Restic » Install | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
cat <<'EXE' | sudo bash | cat <<'EXE' | sudo bash | ||
apt-get update | apt-get update | ||
| Line 21: | Line 21: | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
cat <<'EXE' | sudo bash | cat <<'EXE' | sudo bash | ||
RESTIC_ARCH="$(echo "$(uname -s)_$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')" | RESTIC_ARCH="$(echo "$(uname -s)_$(dpkg --print-architecture)"|tr '[:upper:]' '[:lower:]')" | ||
| Line 35: | Line 35: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
{|class='wikitable mw-collapsible mw-collapsed | {|class='wikitable mw-collapsible mw-collapsed' | ||
!scope='col' style='text-align:left| | !scope='col' style='text-align:left'| | ||
Restic » Config | Restic » Config | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
export RESTIC_REPOSITORY="s3:https://s3.minio.host.k8s.ops/shahed-bkp/academia" | export RESTIC_REPOSITORY="s3:https://s3.minio.host.k8s.ops/shahed-bkp/academia" | ||
echo -n 'Password: ';read -s RESTIC_PASSWORD; export RESTIC_PASSWORD;echo | echo -n 'Password: ';read -s RESTIC_PASSWORD; export RESTIC_PASSWORD;echo | ||
| Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
{|class='wikitable mw-collapsible | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left| | !scope='col' style='text-align:left'| | ||
Restic » Backup | Restic » Backup | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
restic backup \ | restic backup \ | ||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | --repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | ||
| Line 78: | Line 78: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
{|class='wikitable mw-collapsible mw-collapsed | {|class='wikitable mw-collapsible mw-collapsed' | ||
!scope='col' style='text-align:left| | !scope='col' style='text-align:left'| | ||
Restic » Forget | Restic » Forget | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
restic forget --compact \ | restic forget --compact \ | ||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | --repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | ||
| Line 101: | Line 101: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
{|class='wikitable mw-collapsible mw-collapsed | {|class='wikitable mw-collapsible mw-collapsed' | ||
!scope='col' style='text-align:left| | !scope='col' style='text-align:left'| | ||
Restic » Snapshot | Restic » Snapshot | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight | <syntaxhighlight lang='bash'> | ||
restic snapshots --compact \ | restic snapshots --compact \ | ||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ | --repo ${HOME}/backups/academia.chorke.org-prod-apps/ | ||
| Line 125: | Line 125: | ||
==References== | ==References== | ||
{|class='wikitable mw-collapsible | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left' colspan='3'| | !scope='col' style='text-align:left' colspan='3'| | ||
References | References | ||
Latest revision as of 16:43, 18 January 2026
Backup » Restic
|
Backup » Restic | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
References
|
References | ||
|---|---|---|