dilapidavid
Registered
I'm an OS X user who'd like to have a handy way to sync my web pages. I'm a total unix newbie, but I've caught onto the possibility of using rsync and/or rsyncx to do this.
Currently, I can use command-line sftp to post my stuff, but it seems I can only do one file at a time (right?).
Can someone tell me (step by step if possible) how to use rsync or rsyncx to accomplish this? (I can install, no prob. I've already installed rsyncx.)
When I use sftp, I enter:
>sftp username@server.school.edu
at which point it asks me to login.
Then I cd to my public_html directory, where I put my files. I'd love to be able to transfer and sync folders and files to this spot by entering a simple command or two. (I'm unfamiliar with writing/saving/using scripts, but if that's relevant here, let me know!)
Thanks for any help!
David
p.s.--I've read this hint and visited the macosxlabs site, but got lost and don't know how to improvise for my case.
http://www.macosxhints.com/article.php?story=20021023063424701&query=rsync
http://www.macosxlabs.org/documentation/script_archive/script_archive.html#rsyncx
p.p.s.--I just tried again using Rsyncx as best I could, and here's the (edited) output I got in the terminal:
me% time sudo rsync -a -e ssh "/Users/me/sites/itsc/" "username@server.school.edu:/public_html/" --nohfs --showtogo; exit
Password:
username@server.school.edu's password:
rsync: on remote machine: --showtogo: unknown option
rsync error: syntax or usage error (code 1) at main.c(842)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
1.130u 0.100s 0:43.52 2.8% 0+0k 4+1io 0pf+0w
logout
[Process completed]
p.p.p.s.--This is very close to the script found here:
http://www.macosxlabs.org/documentation/script_archive/scripts/rsyncx/5-netwrkbckupDataVolume.html
Currently, I can use command-line sftp to post my stuff, but it seems I can only do one file at a time (right?).
Can someone tell me (step by step if possible) how to use rsync or rsyncx to accomplish this? (I can install, no prob. I've already installed rsyncx.)
When I use sftp, I enter:
>sftp username@server.school.edu
at which point it asks me to login.
Then I cd to my public_html directory, where I put my files. I'd love to be able to transfer and sync folders and files to this spot by entering a simple command or two. (I'm unfamiliar with writing/saving/using scripts, but if that's relevant here, let me know!)
Thanks for any help!
David
p.s.--I've read this hint and visited the macosxlabs site, but got lost and don't know how to improvise for my case.
http://www.macosxhints.com/article.php?story=20021023063424701&query=rsync
http://www.macosxlabs.org/documentation/script_archive/script_archive.html#rsyncx
p.p.s.--I just tried again using Rsyncx as best I could, and here's the (edited) output I got in the terminal:
me% time sudo rsync -a -e ssh "/Users/me/sites/itsc/" "username@server.school.edu:/public_html/" --nohfs --showtogo; exit
Password:
username@server.school.edu's password:
rsync: on remote machine: --showtogo: unknown option
rsync error: syntax or usage error (code 1) at main.c(842)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
1.130u 0.100s 0:43.52 2.8% 0+0k 4+1io 0pf+0w
logout
[Process completed]
p.p.p.s.--This is very close to the script found here:
http://www.macosxlabs.org/documentation/script_archive/scripts/rsyncx/5-netwrkbckupDataVolume.html