LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2009, 07:11 PM   #1
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Rep: Reputation: 15
Rsync configuration problems... backup not sync


Hey guys, I'm working on configuring rsync to sync my desktop home directory with the one on my laptop. I can sync everything from my desktop to my laptop just fine. However, my problems come in if I create a new file or folder on my laptop and then run the sync script, it gets deleted. I have the --delete flag enabled in the sync script but without it any new file I create is simply not copied back to my desktop.
This is doing more a backup instead of actually synchronizing the two computers together. I've looked over the man pages for rsync and been on Google for a while but I can't find anything.
Here is my rsync command...
Code:
rsync -ae "ssh -i /home/Shane/.ssh/rsync_key" --force --progress --stats --exclude-from="/home/Shane/.rsync/exclude_leslie.txt" /home/Shane/ Shane@192.168.2.4:/home/Shane/
Hopefully there is just an option that I am missing. Let me know if any more info is needed. Any help is awesome. Thanks!
 
Old 01-27-2009, 07:35 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
I'm sure in the man pages there is a command that syncs both ways, if you get me! Checks the timestamp on the files or something

Just from here:
Quote:
rsync -ae "ssh -i /home/Shane/.ssh/rsync_key" --force --progress --stats --exclude-from="/home/Shane/.rsync/exclude_leslie.txt" /home/Shane/ Shane@192.168.2.4:/home/Shane/
I should think that the "--force" option is holding up what you are trying to achieve, remove it, then have a go at testing it.

Last edited by irishbitte; 01-27-2009 at 07:46 PM.
 
Old 01-28-2009, 03:19 PM   #3
ESC201
Member
 
Registered: Sep 2008
Distribution: Kubuntu 11.04
Posts: 85

Original Poster
Rep: Reputation: 15
I figured out that rsync isn't the program to use for two way syncs. Unison is the way to go. It's working beautifully and everything is well now.
 
  


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
How can I use rsync to keep multiple clients in sync? BadTim Linux - Software 17 02-01-2008 04:07 AM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
RSYNC Automatic sync script penguinpages Fedora 0 05-01-2007 11:52 AM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 02:22 PM


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

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