I've been doing incremental backups of my system with rsync for months now,only recently it dawned on me that by backing up the running system as normal user,I was actually leaving out a number of files with -rw-r----- permissions,like say the ufw configuration files among many others
Code:
rsync: send_files failed to open "/etc/ufw/after6.rules": Permission denied (13)
therefore I've resolved to use sudo when running rsync,leaving out (as I used to do already) these directories
Code:
--exclude='/mnt' --exclude='/media' --exclude='/proc' --exclude='/sys' --exclude='/dev' --exclude='/tmp' --exclude='lost+found' --exclude='/var/run'
is this a good idea? Are there any issues in running rsync as super user,and should I edit my --exclude list accordingly?
Bookmarks