1
0
dox/docs/md/rsync.md

65 lines
2.1 KiB
Markdown

rsync
=====
TODOs
-----
### TODO rsync one file (or directory?) from notnull@serge to notnull@host
at this point I still have no idea how to do this. closing for now.
notes
-----
A method for copying files from one \[remote\] location to another
\[local\] location.
rsync -aP serge:2222/projex/proto . rsync -v -aP
216.252.162.166:2222/projex/proto . \^ this hung and did nothing.
I'm super confused.
So... so far, you added \~/.ssh/config with info for 127.0.0.1 p 2222
.... but then tried to add keys to /root?? what does that have to do
with rsync? Yes, bad example, ust what i did to not need to enter my
password everytime. However with a passphrase for that key it's that
much of an improvement.. Trying to be less confusing now.
if rsync is based on ssh, then notnull@host should add her keys to
*home/notnull*.ssh/authorized~keys~ and then
host:/home/notnull/.ssh/config should be set up with serge's info and
then rsync should happen there, yah?
That's good to allow access to this host for your user w/o password
butboth aren't necessary for rsync to work. It's just easier to define
the port that way. Also less typing every time..
If rsycn is based on ssh, and if I can ssh into serge at /home/notnull,
then I should be able to rsync something in notnull's home directory.
The issue is the port i bet.
So.... then... can we agree that it's not 'just' rsync -v -aP
216.252.162.166:2222/projex/proto . ??
I am trying to read the manual and there are 43563457365 options and I
just want to know how to rsync to a remote host with a port and a
folder. it's super annyoing.
Something is at odds here: rsync -aP
<rsync://216.252.162.166:2222/projex/proto> . rsync: server sent
"SSH-2.0-OpenSSH~7~.4p1 Debian-10+deb9u4" rather than greeting
real quick: do you know how to open man pages with another editor?
change the pager ('apropos pager') notnull@host:\~\$ apropos pager pager
(1) - opposite of more sensible-pager (1) - sensible editing, paging,
and web browsing w3m (1) - a text based web browser and pager
lol what?
lrwxrwxrwx 1 root root 23 Jan 22 2018 /usr/bin/pager -&gt;
/etc/alternatives/pager
or zless|emacs|nano|w3m *usr/share/man*..