Backup/Restic: Difference between revisions
Jump to navigation
Jump to search
| Line 41: | Line 41: | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | <syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | ||
echo -n 'Password: ';read -s RESTIC_PASSWORD;export RESTIC_PASSWORD;echo | |||
echo | # Password: #evd0wxuV$jNJqWL | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
| Line 52: | Line 51: | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | <syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | ||
restic backup \ | |||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | |||
${HOME}/sites/academia.chorke.org/releases \ | |||
${HOME}/sites/academia.chorke.org/storage \ | |||
${HOME}/sites/academia.chorke.org/shared \ | |||
--exclude=${HOME}/sites/academia.chorke.org/shared/storage/ \ | |||
--tag app=academia.chorke.org \ | |||
--tag server=chorke-academia | |||
:' | |||
repository 5f79eedd opened (version 2, compression level auto) | |||
using parent snapshot 71294ebe | |||
[0:00] 100.00% 1 / 1 index files loaded | |||
Files: 0 new, 27526 changed, 0 unmodified | |||
Dirs: 0 new, 6834 changed, 0 unmodified | |||
Added to the repository: 24.904 MiB (4.578 MiB stored) | |||
processed 27526 files, 599.073 MiB in 0:24 | |||
snapshot be02db43 saved | |||
' | |||
</syntaxhighlight> | |||
|} | |||
{|class='wikitable mw-collapsible mw-collapsed' style='width:100%;margin:6px 0 3px 0' | |||
!scope='col' style='text-align:left| | |||
Restic » Forget | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | |||
restic forget --compact \ | |||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ \ | |||
--keep-hourly 36 --keep-daily 45 --keep-weekly 15 --keep-monthly 15 --keep-yearly 8 --prune | |||
:' | |||
Applying Policy: keep 45 daily, 15 weekly, 15 monthly, 8 yearly snapshots | |||
keep 2 snapshots: | |||
ID Time Host Tags | |||
----------------------------------------------------------------------- | |||
71294ebe 2025-12-02 15:21:18 chorke-academia | |||
be02db43 2025-12-03 07:59:16 chorke-academia app=academia.chorke.org | |||
server=chorke-academia | |||
----------------------------------------------------------------------- | |||
2 snapshots | |||
' | |||
</syntaxhighlight> | |||
|} | |||
{|class='wikitable mw-collapsible mw-collapsed' style='width:100%;margin:6px 0 3px 0' | |||
!scope='col' style='text-align:left| | |||
Restic » Snapshot | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight style='margin:3px 0 3px 0' lang='bash'> | |||
restic snapshots --compact \ | |||
--repo ${HOME}/backups/academia.chorke.org-prod-apps/ | |||
:' | |||
repository 5f79eedd opened (version 2, compression level auto) | |||
ID Time Host Tags | |||
----------------------------------------------------------------------- | |||
71294ebe 2025-12-02 15:21:18 chorke-academia | |||
be02db43 2025-12-03 07:59:16 chorke-academia app=academia.chorke.org | |||
server=chorke-academia | |||
----------------------------------------------------------------------- | |||
2 snapshots | |||
' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 00:26, 3 December 2025
Backup » Restic
|
Backup » Restic | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
References
|
References | ||
|---|---|---|