Skip to content

SCP utility to tar a folder, zip it, and scp it somewhere, then unzip it.

License

Notifications You must be signed in to change notification settings

rathivikram/jscp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jscp

SCP utility to tar a folder, zip it, and scp it somewhere, then unzip it.

Usage:

// create secure context
SecureContext context = new SecureContext("userName", "localhost");

// set optional security configurations.
context.setTrustAllHosts(true);
context.setPrivateKeyFile(new File("private/key"));

// Console requires JDK 1.7
// System.out.println("enter password:");
// context.setPassword(System.console().readPassword());

Jscp.exec(context, "src/dir", "destination/path",
	// regex ignore list 
	Arrays.asList("logs/log[0-9]*.txt",
	"backups"));

Also includes useful classes - Scp and Exec, and a TarAndGzip, which work in pretty much the same way.

About

SCP utility to tar a folder, zip it, and scp it somewhere, then unzip it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%