Class RSync
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.aozan3.util.RSync
-
public class RSync extends Object
This class define a synchronization tool based on the rsync command.- Since:
- 3.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description RSync(Path inputPath, Path outputPath)
RSync(Path inputPath, Path outputPath, int minimumAgeOfFiles)
RSync(Path inputPath, Path outputPath, int minimumAgeOfFiles, Collection<String> excludePatterns)
Constructor.RSync(Path inputPath, Path outputPath, Collection<String> excludePatterns)
-
-
-
Constructor Detail
-
RSync
public RSync(Path inputPath, Path outputPath, Collection<String> excludePatterns)
-
RSync
public RSync(Path inputPath, Path outputPath, int minimumAgeOfFiles, Collection<String> excludePatterns)
Constructor.- Parameters:
inputPath
- input pathoutputPath
- output pathminimumAgeOfFiles
- minimum age of the file in minutesexcludePatterns
- file patterns to exclude
-
-
Method Detail
-
sync
public void sync() throws IOException
Synchronize.- Throws:
IOException
- if an error occurs while executing rsync
-
-