rsync and remote shell

Status
Not open for further replies.

Stenull

Dabbler
Joined
Aug 22, 2011
Messages
45
Hi!
Im reading up on rsync and need some collaboration from a pro :)
I gonna transfer files from a remote client to my freenas@home.
Only way in is by ssh or sftp, so i assume rsync via remote shell is the way to go.

My thought so far
Code:
rsync -vh myuser@remote.client.com:~/torrents/completed/Weeds* /mnt/Tank1/Media

would this copy all folders starting with the word "Weeds" to the destination folder at home?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hi!
Im reading up on rsync and need some collaboration from a pro :)
I gonna transfer files from a remote client to my freenas@home.
Only way in is by ssh or sftp, so i assume rsync via remote shell is the way to go.

My thought so far
Code:
rsync -vh myuser@remote.client.com:~/torrents/completed/Weeds* /mnt/Tank1/Media

would this copy all folders starting with the word "Weeds" to the destination folder at home?

Hi Stenull,

First, love your choice of an example folder, really great show ;-)

Yes, that will work, but you need the '-a' also. When I copy large groups of media files where a potential error might scroll off the screen, I like to add the logfile option, so using your example.

rsync -avh --log-file=/mnt/Tank1/Weeds.log myuser@remote.client.com:~/torrents/completed/Weeds* /mnt/Tank1/Media

The -a (archive) includes a bunch of other options, but also recurses into any subfolders and gets those files too.
 

Stenull

Dabbler
Joined
Aug 22, 2011
Messages
45
Exactly the kind of input i was searching for!
Will try out today so i can finish season 7 ;)

EDIT:
Worked great. Only negative thing was that "v" had no affect in putty.
 
Status
Not open for further replies.
Top