Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-08-2012, 10:50 AM   #1
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)
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 ?
Old 01-08-2012, 02:21 PM   #2
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi newbie0101

Try the following command and it should work:

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


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 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 12:36 AM.

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