LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync help! (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-help-377365/)

slack66 10-27-2005 06:50 AM

rsync help!
 
hi
iam running rsync and i want to backup my entire disk to another disk but there are certain directory that i do not want to be copy(skip).....how do i tell rsync to ignore certain directory? :-) thks

homey 10-27-2005 07:40 AM

Hi,
If you just have one dir to exclude, use something like this...
rsync -avz -e ssh --exclude '/mnt/backup' /mnt/tech root@sony:/mnt

If you have several directories to exclude, put them in a list...
rsync -avz -e ssh --exclude-from=list.txt /mnt/tech root@sony:/mnt


All times are GMT -5. The time now is 05:55 PM.