2018-10-20 13:12:30 +02:00
|
|
|
# bup
|
|
|
|
|
2021-01-07 11:06:38 -03:00
|
|
|
> Backup system based on the Git packfile format, providing incremental saves and global deduplication.
|
2025-03-28 05:26:23 +02:00
|
|
|
> More information: <https://manned.org/bup>.
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Initialize a backup repository in a given local directory:
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bup {{[-d|--bup-dir]}} {{path/to/repository}} init`
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Prepare a given directory before taking a backup:
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bup {{[-d|--bup-dir]}} {{path/to/repository}} index {{path/to/directory}}`
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Backup a directory to the repository specifying its name:
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bup {{[-d|--bup-dir]}} {{path/to/repository}} save {{[-n|--name]}} {{backup_name}} {{path/to/directory}}`
|
2018-10-20 13:12:30 +02:00
|
|
|
|
|
|
|
- Show the backup snapshots currently stored in the repository:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bup {{[-d|--bup-dir]}} {{path/to/repository}} ls`
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Restore a specific backup snapshot to a target directory:
|
2018-10-20 13:12:30 +02:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bup {{[-d|--bup-dir]}} {{path/to/repository}} restore {{[-C|--outdir]}} {{path/to/target_directory}} {{backup_name}}`
|