Sorry Dan, you did say automated. Here is the step to achieve this. (which addresses supplying the password, whilst invoking the command.)
rsync -ave ssh [email protected]:/path/at/remote/ /path/local >/path/to/log/rsync.log certificate login to remote http://www.rsync.net/resources/howto/ssh_keys.html password login to remote http://troy.jdmz.net/rsync/index.html depending on your server and how you log in, doing either of those will allow you to cron your rsync to happiness :) v On Mon, Apr 13, 2015 at 5:19 AM, Victor Villa <[email protected]> wrote: > Hi Dan, > > you're looking for something like > > rsync -ave ssh [email protected]:/path/at/remote/ /path/local > >/path/to/log/rsync.log > > Where > * a = archive mode > * v = verbose (for logging purposes) > * e = specify how > > The man is here: http://linux.die.net/man/1/rsync > > mj/v > > On Mon, Apr 13, 2015 at 4:52 AM, Dan Egli <[email protected]> wrote: > >> Hey folks, here's a quick one. I'm trying to create an automated transfer >> that will use rsync to duplicate a file tree onto another computer. I've >> heard that rsync can use ssh to do this, but I'm not sure how I'd >> accomplish it. As it stands now, my idea was to mount the remote server >> via >> sshfs and then call rsync as if it was a local transfer. That would >> probably work, but it seems like a kludge. Does anyone have any experience >> with pushing files to a remote host over an ssh connection with rsync? If >> so, I'd love to know how. >> >> >> >> Thanks! >> --- Dan >> >> /* >> PLUG: http://plug.org, #utah on irc.freenode.net >> Unsubscribe: http://plug.org/mailman/options/plug >> Don't fear the penguin. >> */ >> > > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
