llsync: llsync: Synchronize local and remote files using rsync

View source: R/llsync.R

llsyncR Documentation

llsync: Synchronize local and remote files using rsync

Description

This function syncs files between the local machine and a remote server, specifically the Longleaf cluster at UNC. The synchronization is done using the rsync command. The function checks if either the source or the destination path starts with "/proj", and if so, it adds the remote server address before the path.

Usage

llsync(path_from, path_to, onyen = "natehall")

Arguments

path_from

character, the source path of the file(s) to be synced.

path_to

character, the destination path where the file(s) will be synced.

onyen

user's onyen. defaults to nate's.

Value

Prints the output of the rsync command.

Examples

llsync("/local/path/file", "/proj/remote/path/")
llsync("/proj/remote/path/file", "/local/path/")

natehall329/nate_utils documentation built on Dec. 31, 2024, 3:25 p.m.