Skip to content
Permalink
Browse files
JENKINS-13635: Backup warnings when performing tar.gz
  • Loading branch information
johnou committed Jan 3, 2013
1 parent c6fb28f commit 8b1d53035609c11acee5e8512104ea9c08810efb
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/jenkinsci/plugins/periodicbackup/TarGzStorage.java
@@ -30,6 +30,7 @@
import org.codehaus.plexus.archiver.ArchiverException;
import org.codehaus.plexus.archiver.tar.TarArchiver;
import org.codehaus.plexus.archiver.tar.TarGZipUnArchiver;
import org.codehaus.plexus.archiver.tar.TarLongFileMode;
import org.codehaus.plexus.logging.console.ConsoleLogger;
import org.kohsuke.stapler.DataBoundConstructor;

@@ -64,6 +65,11 @@ public void backupStart(String tempDirectoryPath, String archiveFilenameBase) th
LOGGER.warning("Cannot set compression value " + e.getMessage());
}

// Support long filenames
TarLongFileMode fileMode = new TarLongFileMode();
fileMode.setValue(TarLongFileMode.GNU);
archiver.setLongfile(fileMode);

archiver.setCompression(compression);
}

0 comments on commit 8b1d530

Please sign in to comment.