Backup plugin: unable to delete files in a Local Storage

Article ID:360029063712
1 minute readKnowledge base

Issue

  • My backup job is failing with a similar traces like the following in the Console Build logs:

Resolution

This happens when backup target folder is a LocalFileStore type and the target folder contains a subfolder.

For example, having this folder structure

.
└── folder.example
    └── subfolder.example

If folder.example is configured as backup target folder from a local file system, it will fail. The solution is using folder.example/subfolder.example instead.

Notes:

  1. CloudBees Backup plugin >= 3.38.12 solves the issue, meaning that a Backup Target folder can contain subfolders.

  2. For disaster recovery, it is highly recommended that you send the backup to a network drive, NFS-mounted directory, etc. see Backup Plugin - Local directory