rsync 1

rsync

# You'll need to fill in a username, the user's IP address, 
# and a file/directory to recieve
rsync -av remote-user@:/path/to/remote/file /local/destination

Here is what the above code is Doing:
1. The -a flag tells rsync to archive the file. This means it will preserve the file’s permissions, ownership, and timestamps.
2. The -v flag tells rsync to be verbose. This means it will print out what it’s doing as it’s doing it.
3. The remote-user@:/path/to/remote/file is the path to the file you want to copy.
4. The /local/destination is the path to the directory you want to copy the file to.

Similar Posts