2018-10-20 12:12:30 +01:00
|
|
|
# bup
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
> Backup system based on the Git packfile format, providing incremental saves and global deduplication.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/bup/bup>.
|
2018-10-20 12:12:30 +01:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Initialize a backup repository in a given local [d]irectory:
|
2018-10-20 12:12:30 +01:00
|
|
|
|
|
|
|
`bup -d {{path/to/repository}} init`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Prepare a given [d]irectory before taking a backup:
|
2018-10-20 12:12:30 +01:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`bup -d {{path/to/repository}} index {{path/to/directory}}`
|
2018-10-20 12:12:30 +01:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Backup a [d]irectory to the repository specifying its [n]ame:
|
2018-10-20 12:12:30 +01:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`bup -d {{path/to/repository}} save -n {{backup_name}} {{path/to/directory}}`
|
2018-10-20 12:12:30 +01:00
|
|
|
|
|
|
|
- Show the backup snapshots currently stored in the repository:
|
|
|
|
|
|
|
|
`bup -d {{path/to/repository}} ls`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Restore a specific backup snapshot to a target dire[C]tory:
|
2018-10-20 12:12:30 +01:00
|
|
|
|
|
|
|
`bup -d {{path/to/repository}} restore -C {{path/to/target_directory}} {{backup_name}}`
|