Avoiding recursive backup
by neidorff from LinuxQuestions.org on (#5EZFJ)
Running OPENSUSE 15.1, trying to do a full backup before upgrading. I have an external drive with tons of room that I use for backups. I'm running into a recursion problem: rsync backs up the backup.
I have the external drive mounted on /mnt/extra .
I run the command (as root):
#rsync -ra / /mnt/extra
When I ran this command, I was aware that I might be getting recursion, and sadly, I am.
Is there a way to exclude a directory from a rsync backup, or if not, how should I restructure my backup to avoid the recursion?
Thank you,
Mark


I have the external drive mounted on /mnt/extra .
I run the command (as root):
#rsync -ra / /mnt/extra
When I ran this command, I was aware that I might be getting recursion, and sadly, I am.
Is there a way to exclude a directory from a rsync backup, or if not, how should I restructure my backup to avoid the recursion?
Thank you,
Mark