Adresse du projet: https://forge.centrale-marseille.fr/projects/sauvegardes
- agent-less (ssh, /bin/sh, rsync or zfs)
- /bin/sh scripted
- server on FreeBSD/ZFS (may work elsewhere)
- clients tested: Linux/OpenBSD/FreeBSD (any unix-like OS should work)
- FreeBSD jails can be saved apart (and not depend on their host)
- rsync for any non-zfs client
- fping
- mutt for reporting
- mbuffer advised (not mandatory)
- root access on clients, with ssh key only
- git clone this
- Create a new ssh key pair only for backups, this key will be authorized from this host only
ssh-keygen -C "savscript@$(hostname -s)" -N '' -f id_sav
- copy savscript.conf.dist to savscript.conf
- edit savscript.conf (
SSH_KEY
,SAVDIR
, …) - add a client and test
- add to crontab
32 23 * * * root /path/to/savscript.sh
- use
./tools/nouvelle_machine.sh my.client
to create a config file in machines.d/ and deploy ssh key on clients - launch
./savscript.sh
(with-v
if needed)