1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/bup.md
2018-10-20 12:12:30 +01:00

695 B

bup

Backup system based on the git packfile format, providing fast incremental saves and global deduplication.

  • Initialize a backup repository in the specified local directory:

bup -d {{path/to/repository}} init

  • Prepare a given folder before taking a backup:

bup -d {{path/to/repository}} index {{path/to/folder}}

  • Backup a folder to the repository:

bup -d {{path/to/repository}} save -n {{backup_name}} {{path/to/folder}}

  • 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}}