Xsync
A tool to help sync items in your local and remove server, pushing only modifications just like rsync
-
You can ignore files and folders by creating a
.xsyncignorefile in the base directory similar way you'd write a.gitignorefile -
To sync a file or directory to a remote server
use Path;
use ;
//multiple auth options include
//Attempt basic password authentication.
let auth1= UserauthPassword;
//authenticate the current connection with the first public key found in an SSH agent
let auth2= UserauthAgent;
//Attempt public key authentication using a PEM encoded private key file stored on disk
let auth3= UserauthPubkeyFile;
let conn =new;
sync.unwrap;
-
This creates a
.xsync.tomlfile in the base directory which is a snapshot of the latest synced files and directories on the server This file is how xsync can track what files or dir to update, delete or upload -
To clone a directory or file
use Path;
use ;
let auth= UserauthAgent;
let conn =new;
clone_dir.unwrap;
//config_dest is the destination you wish to write your .xsync.toml file which is optional
clone_file.unwrap;