borg Command Examples

Deduplicating backup tool. Create local or remote backups that are mountable as filesystems. More information: https://borgbackup.readthedocs.io/en/stable/usage/general.html.

borg init {{path/to/repo_directory}}

borg create --progress {{path/to/repo_directory}}::{{Monday}} {{path/to/source_directory}}

borg list {{path/to/repo_directory}}

borg extract {{user}}@{{host}}:{{path/to/repo_directory}}::{{Monday}} {{path/to/target_directory}} --exclude '{{*.ext}}'

borg prune --keep-within {{7d}} --list {{path/to/repo_directory}}

borg mount {{path/to/repo_directory}}::{{Monday}} {{path/to/mountpoint}}

borg create --help