LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-08-2012, 10:50 AM   #1
newbie0101
Member
 
Registered: Nov 2011
Posts: 47

Rep: Reputation: Disabled
using rsync to backup files


hello, i am trying to use rsync to backup files from source to destinaion but only those which are missing in destination.
i usejust example)
Code:
rsync -auv /home/user/{C++,Python,Documents} /media/usb/BACKUP/
so if i create in /home/user/C++/hello.cpp and run the rsync command as above it should copy only this one file hello.cpp but i see in the output it copies everything from C++, Python and Documents.
even though this example i found in google and fom man page i cannot figure out which options should be used to copy only missing files in destination.

can you help me ?
thanks
 
Old 01-08-2012, 02:21 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,739

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
@ Reply

Hi newbie0101

Try the following command and it should work:

Code:
rsync -auv --ignore-existing /home/user/{C++,Python,Documents} /media/usb/BACKUP/
 
  


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
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 11:43 AM
rsync: only backup recently modified files hamish Linux - Software 3 09-20-2011 09:55 AM
LXer: How to use rsync to copy files, folders, and to backup in Linux LXer Syndicated Linux News 0 03-01-2011 12:00 AM
LXer: Backup with rsync and rsync.net LXer Syndicated Linux News 0 09-14-2010 04:20 PM
Dead Laptop RAM: How to backup files with Rsync? fragged Linux - Newbie 5 08-23-2009 01:43 PM


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

Main Menu
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