* Auto Prune Jobs and Files. This is called at the end of every
* Job. We do not prune volumes here.
*/
-int do_autoprune(JCR *jcr)
+void do_autoprune(JCR *jcr)
{
UAContext *ua;
CLIENT *client;
bool pruned;
if (!jcr->client) { /* temp -- remove me */
- return 1;
+ return;
}
ua = new_ua_context(jcr);
}
free_ua_context(ua);
- return 1;
+ return;
}
/*
if (jcr->jr.PoolId != mr.PoolId) {
continue;
}
+ /* Don't prune archived volumes */
+ if (mr.Enabled == 2) {
+ continue;
+ }
/* Prune only Volumes with status "Full", or "Used" */
if (strcmp(mr.VolStatus, "Full") == 0 ||
strcmp(mr.VolStatus, "Used") == 0) {