Problem with rsync backup

Joe S <[email protected]>
Newsgroups gmane.org.user-groups.linux.calgary.general
Message-ID <20150814115336.3019eef2@crunchbang>
I am trying to backup my computer to an external drive using rsync.
From / to /media/root-backup
The problem: rsync copies more directories than I want and it
copies /media/root-backup multiple times.

I have included my backup script and filter rule file.
Hoping someone will see the mistake.

Thanks

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying
root-backup.sh (application/x-shellscript, 274 B)
#!/bin/bash

# Root Backup Script


#The source directory:
SRC="/"

#The target directory:
TRG="/media/root-backup/"

#The rsync options:
OPT="-av --numeric-ids --delete --delete-excluded --filter=merge_/root/bin/root-filter-rule"

#Execute the backup
rsync $OPT $SRC $TRG
root-filter-rule (application/octet-stream, 122 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.