Borg - commands

mail

delete

Usage

delete

Flags

Flag Usage
-b bla

Example

see delete archive or repository
mail

create

Usage

Create a backup archive containing all files found while recursively traversing all paths specified

Flags

Flag Usage
-C compression
--compression=compression
with compression : algorithm,ratio
algorithm ratio speed compression notes
lz4 N/A very fast low default
zstd 1 fast low suggested over zlib and lzma (needed mostly for compatibility with old Borg versions)
22 slow high
none N/A very fast disabled
-e pattern
--exclude pattern
exclude paths matching pattern, example :
borg create [other options] --exclude *~ --exclude *pyc
--exclude-from myExcludeFile read exclude patterns from myExcludeFile, one per line
--list output list of files, with a leading single-letter prefix (source) :
  • uppercase : status of a regular file relative to the "files" cache
    • A : added
    • C : changed during backup
    • E : error
    • M : modified
    • U : unchanged
  • lowercase : object type
    • - : dry run, not backed up
    • d : directory
    • h : hardlink
    • s : symlink
    • x : excluded
-s --stats print statistics for the created archive

Example

see make a backup