tldr/pages/common/bup.md

25 lines
749 B
Markdown
Raw Normal View History

2018-10-20 12:12:30 +01:00
# bup
> Backup system based on the git packfile format, providing fast incremental saves and global deduplication.
2019-04-11 17:25:14 +01:00
> Homepage: <https://github.com/bup/bup>.
2018-10-20 12:12:30 +01:00
- Initialize a backup repository in the specified local directory:
`bup -d {{path/to/repository}} init`
- Prepare a given directory before taking a backup:
2018-10-20 12:12:30 +01:00
`bup -d {{path/to/repository}} index {{path/to/directory}}`
2018-10-20 12:12:30 +01:00
- Backup a directory to the repository:
2018-10-20 12:12:30 +01: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`
- Restore a specific backup snapshot to a target directory:
`bup -d {{path/to/repository}} restore -C {{path/to/target_directory}} {{backup_name}}`