LinuxQuestions.org
Review your favorite Linux distribution.
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 03-06-2011, 10:57 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,026

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
back-up question many different sources (rsync)


hi, 19:25 into this video has a question about back-ups:

http://cnettv.cnet.com/ep-36-ios-saf...6.html?tag=api

it is basically asking how to save files from different sources (mac harddrive, windows harddrive, sd-card, cd's) and they want to ensure pictures from a digital camera dont get overwritten (there are multiple 001.jpg, 002.jpg, ... files -- maybe md5sum will help here).

i assume rsync would be good in this case but i am not sure what the syntax would be. i also assume that the rsync command is available for mac (i am more of an scp guy) but i have been proven wrong on assuming bash compatability between linux/ os-x before.

thx,

Last edited by schneidz; 03-06-2011 at 10:59 AM.
 
Old 03-06-2011, 09:00 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
If you point your rsync to a different backup directory for each source directory, you won't have any problems.

Here's the string I use for backing up my home folder across my network. I use the same string on my netbook, but with a different target directory (/media/[partition]/netbook) or something like that):

Code:
rsync -arv /home/[username] [username]@[local ipaddress]:/media/[partition]/[laptop]
 
Old 03-07-2011, 08:58 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,026

Original Poster
Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by frankbell View Post
If you point your rsync to a different backup directory for each source directory, you won't have any problems.

Here's the string I use for backing up my home folder across my network. I use the same string on my netbook, but with a different target directory (/media/[partition]/netbook) or something like that):

Code:
rsync -arv /home/[username] [username]@[local ipaddress]:/media/[partition]/[laptop]
thx (rep added), does rsync handle duplicate files ?; what about files that happen to have the same filename but arent duplicates ?
 
  


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 runs back up but process is already running the same backup... struct Linux - Newbie 5 09-17-2010 12:44 AM
Can rsync back up to multiple sites simultaneously? eperry77 Linux - Software 2 12-08-2009 11:26 AM
Rsync (via Back in time) grinds system to a halt Zeedok Linux - Software 7 07-14-2009 04:46 AM
LXer: Back up like an expert with rsync LXer Syndicated Linux News 0 07-17-2007 04:46 PM
rsync with multi sources ? dirstyGuy Slackware 1 01-26-2004 11:45 AM


All times are GMT -5. The time now is 12:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration