Differences
This shows you the differences between two versions of the page.
| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
software:files [2024/07/04 15:27] cyril [Maintenance] |
software:files [2026/04/24 22:23] (current) cyril |
| * Create a read-only snapshot: ''btrfs subvolume snapshot -r <input-subvolume-path> <output-snapshot-path>'' (<output-snapshot-path> is typically <input-subvolume-path>/.snapshots/<date>) (just remove ''-r'' for a read-write snapshot). | * Create a read-only snapshot: ''btrfs subvolume snapshot -r <input-subvolume-path> <output-snapshot-path>'' (<output-snapshot-path> is typically <input-subvolume-path>/.snapshots/<date>) (just remove ''-r'' for a read-write snapshot). |
| * Delete a snapshot: ''btrfs subvolume delete <snapshot-path>'' | * Delete a snapshot: ''btrfs subvolume delete <snapshot-path>'' |
| * Analyze snapshot disk usage: ''btrfs quota enable <subvolume>'' and then ''btrfs qgroup show <subvolume>'' [[[https://unix.stackexchange.com/questions/188315/how-to-check-simulate-how-much-space-will-be-freed-after-i-remove-a-btrfs-sub|source]]] | * Analyze snapshot disk usage: |
| | * ''btrfs filesystem du -s <subvolume>'' shows shared and exlusive storage |
| | * Alternative:''btrfs quota enable <subvolume>'' and then ''btrfs qgroup show <subvolume>'', but enabling quotas makes the FS slower and a bit more unstable [[[https://unix.stackexchange.com/questions/188315/how-to-check-simulate-how-much-space-will-be-freed-after-i-remove-a-btrfs-sub|source]]] |
| * ZFS snapshots: | * ZFS snapshots: |
| * They can be recursive. | * They can be recursive. |
| * ''borg list <repo>'' | * ''borg list <repo>'' |
| * ''borg info <repo>::<archive>'' | * ''borg info <repo>::<archive>'' |
| | * ''borg diff <repo>::<archive1> <archive2>'' |
| | * ''borg mount <repo>::<archive> <mountpoint>'' |
| | |
| |
| === Restic === | === Restic === |
| * The chunker cannot be configured, contrary to Borg. It is equivalent to [[https://restic.readthedocs.io/en/stable/100_references.html#backups-and-deduplication|19,23]],[[https://restic.net/blog/2015-09-12/restic-foundation1-cdc/|21,512]], similarly to Borg's default [[https://borgbackup.readthedocs.io/en/stable/internals/data-structures.html#buzhash-chunker|19,23,21,4095]], but unlike my chosen values. | * The chunker cannot be configured, contrary to Borg. It is equivalent to [[https://restic.readthedocs.io/en/stable/100_references.html#backups-and-deduplication|19,23]],[[https://restic.net/blog/2015-09-12/restic-foundation1-cdc/|21,512]], similarly to Borg's default [[https://borgbackup.readthedocs.io/en/stable/internals/data-structures.html#buzhash-chunker|19,23,21,4095]], but unlike my chosen values. |
| * ''--compression'': unlike Borg, there is only choicies ''auto'', ''max'' and ''off'' | * ''--compression'': unlike Borg, there is only choicies ''auto'', ''max'' and ''off'' |
| | * ''restic --repo <repo> snapshots'' to list snapshots |
| |
| |