hi
i try to backup my home folder with rsync...
in a script i have
Code:
#!/bin/sh
# directory to backup
BDIR=/home/$USER
# excludes file - this contains a wildcard pattern per line of files to exclude
EXCLUDES=exclude.txt
OPTS="-a -r -v --exclude-from=$EXCLUDES"
# the name of the backup machine
BACKUPDIR=/tmp/test_rsync
# now the actual transfer
rsync $OPTS $BDIR $BACKUPDIR
i try to exclude some folde and all sub-directory...
in my exclude.txt i have
+ /home/collinm/mp3
+ /home/collinm/Download
when i run the script, rsync copy all file .... it copy mp3 and Download folder..... but i don't want that....
any idea?
thanks