Class RSync


  • public class RSync
    extends Object
    This class define a synchronization tool based on the rsync command.
    Since:
    3.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • RSync

        public RSync​(Path inputPath,
                     Path outputPath)
      • RSync

        public RSync​(Path inputPath,
                     Path outputPath,
                     int minimumAgeOfFiles)
      • RSync

        public RSync​(Path inputPath,
                     Path outputPath,
                     int minimumAgeOfFiles,
                     Collection<String> excludePatterns)
        Constructor.
        Parameters:
        inputPath - input path
        outputPath - output path
        minimumAgeOfFiles - minimum age of the file in minutes
        excludePatterns - file patterns to exclude
    • Method Detail

      • sync

        public void sync()
                  throws IOException
        Synchronize.
        Throws:
        IOException - if an error occurs while executing rsync