LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rsync configuration problems... backup not sync (https://www.linuxquestions.org/questions/linux-software-2/rsync-configuration-problems-backup-not-sync-700352/)

ESC201 01-27-2009 07:11 PM

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!

irishbitte 01-27-2009 07:35 PM

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.

ESC201 01-28-2009 03:19 PM

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. :)


All times are GMT -5. The time now is 04:54 AM.