Ubuntu – Backup /etc/ as normal user Deja Dup

backup

I want a normal (no sudo) user to be able to backup /etc/ and their home directory using Deja Dup. Currently the home folder backup goes fine, but due to lack of permissions /etc does not get backed up.

Is there a way to create a new group, say 'backupers' add the user to it, and then edit visudo to allow the group 'backupers' to use Deja Dup to perform such backups?

At the moment the user can look at files in /etc/ (say with gedit) but can't modify, and that is the way I would like it to stay. But them making a backup is handy.

Best Answer

If your purpose in backing up /etc is just to protect against accidental error, consider using etckeeper to store it in version control. Install the etckeeper package, which will automatically set it up, and will automatically commit configuration changes. If you need to revert an erroneous configuration change, use sudo bzr on the /etc/ repository.

Related Question