LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH option question... (How to) (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-option-question-how-to-663926/)

abovenbeyond 08-19-2008 05:46 PM

SSH option question... (How to)
 
Hello all,
I have a desktop I would like to sync to my laptop...

I thought this would just be a simple task, no big deal... right??

Well for some reason it hasn't been so.

Here is what I want to do, I want to sync my entire home dir from the desktop to the laptop. Here is what I have been running...

rsync -arvuz --delete /home/user/ ipaddress:/home/user/

But this is also copying over the settings which are different I guess because I keep getting a white screen after I log in on the laptop after a sync.

Should I just remove the "r" in -arvuz (-avuz) thats recursive right?

Or is this even the best way? Should I be using scp -r sort of command?

eco 08-19-2008 06:09 PM

Hi,

Rsync is an amazing tool with many options. Go through the man pages and check them out.

You could use exclude/include lists. The simplest though would probably be to store all the files you want to transfer in one place. No need to sync .kde,.ssh, ... it will only cause trouble.

Oh and make sure you delete after all the files where synked... just in case ;)

Hope this helps,
-Edoardo

Mr. C. 08-19-2008 06:15 PM

Don't blindly copy over configuration files used by the desktop environment or other programs. Such files/directories are typically named to start with a dot (.), to be hidden by ls. Exclude from your list of files to sycn, the files that are not created by you, or that are created and manged by some other program such as the desktop environment (eg. .gnome*).


All times are GMT -5. The time now is 10:40 AM.