LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rsync help (https://www.linuxquestions.org/questions/linux-software-2/rsync-help-941901/)

alaios 04-26-2012 12:41 PM

Rsync help
 
Dear all,
I have few questions regarding rsync and I would like to ask for some advice.

So far I am having all my Documents (folder inside /home/user/Documents/Documents-remoteServer) folders in a remote server, I mount that one through sshfs and currently I am having quite few problems with its performance.

I have decided
a. buy a new large hard disk
b. move all that remote content locally to my hard disk
c. use that remote space only for backing up files

1)If I understand right this brings into the game rsync which can make "accurate" copies. If that is right can u give me few hints houw the command should like when I copy the files from remote server to a local hard disk now?

2) Lets say that one is complete I am also thinking to use the old remote server to taking backups file of my work. If I understand it right rsync would only copies changes to files made and this will reduce a lot the network throughput needed. Is not that right? I gues a crontab entry of rsync would make it work. The only thing that concerns me now if how rsync will behave when at the beginning the local files that I would have on my hard disk (those that were copied at step one) would be 99% same with those in the remote server. Would that be a problem?

I would like to thank you for your help and support

B.R
Alex

TobiSGD 04-26-2012 12:51 PM

Quote:

Originally Posted by alaios (Post 4663736)
If that is right can u give me few hints houw the command should like when I copy the files from remote server to a local hard disk now?

I don't know if u can give you hints, since I don't know who u is. But I can give you a hint.
Code:

rsync -a --progress user@server-ip:/path/to/your/documents/* /path/to/your/local-documents
This will copy all files and directories (-a option means copy recursively and preserve file permissions) from the directory /path/to/your/documents/ on the server server-ip to the local path /path/to/your/local-documents. rsync will login as user to your server to do that and show progress bars (--progress option).
For more info on rsync
Code:

man rsync
is a very good source.

Quote:

If I understand it right rsync would only copies changes to files made and this will reduce a lot the network throughput needed.
Correct.

Quote:

The only thing that concerns me now if how rsync will behave when at the beginning the local files that I would have on my hard disk (those that were copied at step one) would be 99% same with those in the remote server. Would that be a problem?
Sorry, I don't understand that question, please describe that in a different way.


All times are GMT -5. The time now is 06:15 AM.