Forrest logo
back to the borg tool

borg:tldr:e8c16

borg: Backup a directory into the repository, creating an archive called "Monday".
$ borg create --progress ${path-to-repo_directory}::${Monday} ${path-to-source_directory}
try on your machine

This command is using the "borg" backup tool to create a backup and store it in a repository directory. Here's a breakdown of the different components of the command:

  • borg create: This is the command to create a backup using the borg tool.
  • --progress: This flag adds progress information while creating the backup, allowing you to see the progress of the backup process.
  • ${path-to-repo_directory}: This is the path to the repository directory where the backup will be stored. You need to replace ${path-to-repo_directory} with the actual path on your system.
  • ::${Monday}: This is the backup archive name or label. It sets the name of the backup archive to be created. Monday could be a placeholder for a specific label or identifier you want to assign to the backup archive. You can change it to any desired name.
  • ${path-to-source_directory}: This is the path to the directory or directories you want to back up. You need to replace ${path-to-source_directory} with the actual path on your system.

When you run this command, it will create a backup of the specified source directory(s) and store it in the repository directory under the defined archive name. The --progress flag will give you details on the progress of the backup process while it's being created.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the borg tool