Thanks for the detailed answer. I have a few questions
Code:
If the userid isn't a member of the group and the groups don't exist on both systems, yes.
rsync is only an effective backup tool if the files are all owned by 1 userid and that userid is the one running the rsync command.
I think I have a problem with one user/userid but I can fix that. But for now are my backups okay in spite of the error messages
Code:
Of course, the storage needs to be Linux on a file system, not NTFS nor FAT-whatever. Those don't support Unix-style permissions through the available drivers.
Yes it's on a Linux file system - ext4
Code:
BTW, why not use rsync -avz local-source/ userid@remote-IP:/target/directory/
for the command to see what the issues are a little better, then once things are working, you can remove the -v and put in the -q.
I was using the v but the output was overwhelming so I tried the q to see if it was easier to understand
Code:
From a security standpoint, backups should be pulled by the backup server using non-remote mount protocols. rsync fits that nicely. By using network mounts (it appears you are) and mounting on the client machine, then malware can totally destroy all the backups. With the backup server pulling data and not allowing the client machine(s) direct access to that storage, you've just protected your backups from crypto-locker-type attacks.
I agree and will change it
Code:
Is there a reason not to use a real backup tool that handles versioning for you? They are crazy efficient these days and the command looks pretty much like an rsync command, but provides so much more capability for almost zero extra effort and less than 10-15% more storage. Just a thought. If you are doing HOME directory backups, not using root (or a root-equiv) userid is fine. If you are doing backups for systems, then using root really is the only method that can also be secured.
Its a hobby site and I'm using bash and rsync as a learning experience.
Thanks again for your help
Frank
Bookmarks