On Tue, Aug 22, 2023 at 03:00:33AM +0000, Russell L. Harris wrote:
> My needs are simple.  I need two git repositories.
>
> The first is my work space, into which periodically I commit the
> article on which I am working.
>
> The second repository is my backup; it resides on another machine.
> Several times a day, I SSH into the backup machine and pull the
> working repository.  It would be nice to be able to push from WORKING
> to BACKUP, eliminating the need to SSH.
>
> I cloned the WORKING repository from the old host, and the WORKING
> repository appears to function correctly.  But I do not know how to
> configure the BACKUP repository.  I tried the BARE option, but I am not
> able to push from WORKING to BACKUP.

Creating BACKUP as a bare repository, configuring it as a remote in WORKING and
pushing WORKING to BACKUP whenever you want is the correct setup for your
situation. If you can ssh to the backup machine it's weird that you can't push
to it. What happens when you use `git push`?


--
Ceppo

Reply via email to