Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mirror.

0 views
Skip to first unread message

Sidney_Kotic

unread,
Sep 20, 2021, 7:08:15 PM9/20/21
to
What package would/should I use to automatically mirror entire directories from
one computer to another?

Malcolm

unread,
Sep 20, 2021, 7:29:12 PM9/20/21
to
Hi
Any tool that uses rsync as a backend or rsync itself...

--
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
Tumbleweed 20210916 | GNOME Shell 40.4 | 5.14.2-1-default
HP Z440 | Xeon E5-2690 V3 X24 @ 2.60GHz | AMD RX550/Nvidia GT1030
up 1 day 20:31, 2 users, load average: 0.36, 0.54, 0.35

Sidney_Kotic

unread,
Sep 20, 2021, 8:08:41 PM9/20/21
to
On 9/20/21 3:29 PM, Malcolm wrote:

> Hi
> Any tool that uses rsync as a backend or rsync itself...

Howdy,
I actually use rsync, often as much as 5 times in a row for different
directories, from the command line to accomplish this now. I'd like to automate
it a bit and run it from my crontab, but I'm not fond of leaving scripts laying
around with passwords in them. :-)

Carlos E. R.

unread,
Sep 20, 2021, 8:22:02 PM9/20/21
to
rsync can use a secrets file.

Or, use ssh as backend in paswordless mode.

--
Cheers,
Carlos E.R.

William Unruh

unread,
Sep 20, 2021, 9:15:26 PM9/20/21
to
On 2021-09-20, Sidney_Kotic <ka...@have.it> wrote:
> What package would/should I use to automatically mirror entire directories from
> one computer to another?

rsync

Andrew

unread,
Sep 21, 2021, 3:38:59 AM9/21/21
to
Sidney_Kotic wrote:
> What package would/should I use to automatically mirror entire
> directories from one computer to another?

As an alternative, wget
I use it for some kinds of backup, mirroring entire structures including
the timestamps.

Sidney_Kotic

unread,
Sep 21, 2021, 9:17:47 PM9/21/21
to
On 9/20/21 4:19 PM, Carlos E. R. wrote:

> Or, use ssh as backend in paswordless mode.

I thought I'd take what looked to be the simple path. So...
1. Ran the command: ssh-keygen -t rsa -b 4096 -C "ka...@have.it"
I used the seemingly default id_rsa and left the passphrase blank.
2. Ran the command: ssh-copy-id -i ~/.ssh/id_rsa.pub kant@c
"c" is a known host in the /etc/hosts file.
All of this seemed to work.

Tried the command: ssh kant@c
and it asks for a password, as does the rsync command.

In the .ssh directory the file authorized_keys exists and the contents of the
file id_rsa.pub match it.

What did I miss, probably a lot. The results of trying to google this process
are all over the place and vary wildly in their recommendations.

Carlos E. R.

unread,
Sep 23, 2021, 9:30:34 AM9/23/21
to
Maybe tell the ssh daemon service on destination to accept key file
entry, or perhaps to not accept password.

--
Cheers,
Carlos E.R.
0 new messages