backup with rsync

Hello All great minds,


I have a problem that i need help with, Ok i have server with two drive main and backup drive. I was trying to backup the main drive to backup with rsync and where what i have for command

rsync -a --exclude="/backup/*" / /backup


The backup drive mounts as backup and trying to backup everything with out backup the backup directory so that there is not loop.

But it seem that i doing something wrong becasue its still backup that directory and making a loop

 

 

 

 

Top