I’ve got an automated rsync/cron job that backs up a users home directory to a server. Both boxes are running Tumbleweed. Works great, and it was easy.
Now I want to backup various system files/directories (mostly /etc). That’s not so easy.
I CAN do that with an nfs share, but it seems horribly slow. From what I’ve read, SMB would be even slower.
From the error messeges I gather it’s an issue with security measures and SSH, particularly root access to SSH.
Lots of small files? Maybe try to back up the selected items as one larger file, use Clonezilla for this and only having a large backup file send it to the destination.
Are you SSH-ing from server into the client, and trying to do that as root?
rsync basically just instructs ssh to connect and run rsync remotely, you could configure ssh such that it ignores rsync commands and runs rsync with a particular set of flags using sudo to become root.
Since /etc is likely to have files only readable by root just make your life easier by having a script copying it all to tmpfs with suitable permissions and tell rsync to look for files there?
Have you performed any NFS optimizations? upped the thread count? Sparse file tree and asyncronous read/write? If you are dealing with a lot of small files, you are leaving a lot of optimizations on the table.
LOL. I’m only qualified for the kiddie end of the pool. I will look into, though. On a positive, I have figured out how to login as root over SSH. Seems like all my linux difficulties come down to either permissions or configs. This time it was configs, unlike when I got SSH working properly (that was perms). Still gotta get rsync handling system files. Thanks.
Where do root’s keys go? Users have a ssl directory, but I don’t see one in the root directory. This feels like the solution I’m looking for, though. Thanks.