borg

borg

TLDR

Initialise a (local) repository

>_ borg init [/path/to/repo_directory]
copy

Backup a directory into the repository, creating an archive called "Monday"

>_ borg create --progress [/path/to/repo_directory]::[Monday] [/path/to/source_directory]
copy

List all archives in a repository

>_ borg list [/path/to/repo_directory]
copy

Extract a specific directory from the "Monday" archive in a remote repository, excluding all *.ext files

>_ borg extract [user]@[host]:[/path/to/repo_directory]::[Monday] [path/to/target_directory] --exclude '[*.ext]'
copy

Prune a repository by deleting all archives older than 7 days, listing changes

>_ borg prune --keep-within [7d] --list [/path/to/repo_directory]
copy

Mount a repository as a FUSE filesystem

>_ borg mount [/path/to/repo_directory]::[Monday] [/path/to/mountpoint]
copy

Display help on creating archives

>_ borg create --help
copy

Copied to clipboard
free 100$ digital ocean credit