duplicity

On 2024-05-07 9:09 p.m., Matthew Ernisse wrote:
On Wed, May 08, 2024 at 12:25:43AM +0100, Jo MacMahon said:
I'm interested if anybody has solutions using just the base system

I've had a set of functions in my .profile for about 15 years
that keeps large parts of my home directory available and in
sync across Linux, macOS and OpenBSD systems.  On the upstream
end it is just a web server with some files, including a file
that has the sha256 hashes of the files.  This happens to be
updated by a git post-receive hook but you could do it however
you want.  In my .profile it checks the sha256 hashes of the
local files against the remote files and if they differ,
downloads them.  I used $RANDOM to make sure this doesn't run
every single time I start a shell.  On OpenBSD this works using
ksh(1), ftp(1), and sha256(1).


Reply via email to