LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-26-2012, 12:41 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
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
 
Old 04-26-2012, 12:51 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by alaios View Post
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.

Last edited by TobiSGD; 04-26-2012 at 12:52 PM.
 
1 members found this post helpful.
  


Reply



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 solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 03:23 AM
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 01:39 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 09:48 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 PM.

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
Open Source Consulting | Domain Registration