]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manuals/en/console/bconsole.tex
Update truncate on purge doc
[bacula/docs] / docs / manuals / en / console / bconsole.tex
index f090374b3f939af59e429740f8c527da4ef23597..d9cd52c1bc0f97f0868df88f412a4a3bd85626c2 100644 (file)
@@ -821,7 +821,20 @@ purge volume|volume=\lt{}vol-name\gt{} (of all jobs)
 For the {\bf purge} command to work on Volume Catalog database  records the
 {\bf VolStatus}  must be Append, Full, Used, or Error.  
 
-The actual data written to the Volume will be unaffected by  this command.  
+The actual data written to the Volume will be unaffected by this command unless
+you are using the \texttt{ActionOnPurge=Truncate} option on those Media.
+
+To ask Bacula to truncate your \texttt{Purged} volumes, you need to use the
+following command in interactive mode or in a RunScript:
+\begin{verbatim}
+*purge volume action=truncate storage=File allpools
+# or by default, action=all
+*purge volume action storage=File pool=Default
+\end{verbatim}
+
+This is possible to specify the volume name, the media type, the pool, the
+storage, etc\dots (see \texttt{help purge}) Be sure that your storage device is
+idle when you decide to run this command.
 
 \item[python]
    \index[general]{python}