LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-27-2005, 07:50 AM   #1
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
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
 
Old 10-27-2005, 08:40 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync sant25 Linux - General 2 09-02-2005 04:34 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
Rsync help tricky1234 Solaris / OpenSolaris 3 09-07-2004 11:08 AM
rsync-2.4.6-2 santha Linux - Software 1 08-25-2004 05:35 AM
Rsync buttersoft Linux - Software 4 11-05-2003 12:37 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration