I am supposed to make System-Backups of the linux servers my employer is running. I tried rsnapshot and settled for duplicity, as it seems to be updated more frequently.
I need backups of /etc/, /bin/, /usr/, /lib/ & /home/. Obviously, when i try to backup /etc/ quite a few files are locked:
Error accessing possibly locked file /etc/.pwd.lock
I would not like to change permissions on the whole /etc/ folder for security reasons.
The same happens with the /home/ folder, and here again i would not like to change permissions/ownership of the whole /home/ folder as users may not be able to ssh into a machine anymore, since they have no more access to their public keys.
What would be a reasonable way to deal with this? I didn't see anyone mentioning this in any duplicity example.
If you feel offended by my low level of knowledge, please understand that i am a programmer and not a system admin.
Any thoughts would be highly appreciated.