Skip to content

Commit

Permalink
docs: extended truncate command drive specification docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jun 9, 2021
1 parent b545317 commit 6b03a20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/manuals/source/TasksAndConcepts/BareosConsole.rst
Expand Up @@ -1398,10 +1398,12 @@ truncate
[volume=<volume>] [drive=<drivenum>] [yes]
When using a disk volume (and other volume types also) the volume file still resides on the |sd|. If you want to reclaim disk space, you can use the :bcommand:`truncate volstatus=Purged` command. When used on a volume, it rewrites the header and by this frees the rest of the disk space.
By default the first drive of an autochanger is used. By specifying `drive=<drivenum>`, a different drive can be selected.

If the volume you want to get rid of has not the **Purged** status, you first have to use the :bcommand:`prune volume` or even the :bcommand:`purge volume` command to free the volume from all remaining jobs.

This command is available since Bareos :sinceVersion:`16.2.5: truncate command`.
The *drive=<drivenum>* selection was added in :sinceVersion:`21.0.0: truncate command drive selection`.

umount
:index:`\ <single: Console; Command; umount>`\ Alias for :bcommand:`unmount`.
Expand Down

0 comments on commit 6b03a20

Please sign in to comment.