Skip to content
Permalink
Browse files
Merge pull request #5 from johnou/long-filenames
JENKINS-13635: Backup warnings when performing tar.gz
  • Loading branch information
johnou committed Jan 3, 2013
2 parents 7a3bfc8 + 8b1d530 commit 4bf5a1269b2ba39f6a1eb6fefc57f6230aea9c48
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 4bf5a12

Please sign in to comment.