Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The hard disk of one of my servers is full, so I need to move a file away from it to make room.

I have tried tar -cvf but when I send it to the other server using wget -c, I see it is 100% complete. The problem is that the size of the file is different even though it reported being finished.

share|improve this question

closed as unclear what you're asking by slhck Sep 9 '13 at 13:12

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
It is hard to tell what you are asking. Could you clarify? –  Hennes Sep 9 '13 at 11:28
    
i want backup file in server to another server –  monkey_boys Sep 9 '13 at 11:34
1  
Do you first create the tarball and then download it? What do you mean with 'file not finish'? –  Hennes Sep 9 '13 at 11:36
3  
create a tarball and use rsync, in my experience, wget isn't good for big files, usually they are corrupted. –  Fischer Sep 9 '13 at 11:45
1  
@monkey_boys i posted an answer, but please try to do a simple search before you ask, these kind of question tend to be voted down or closed for obvious reasons. If you do a search, and still unable to find an answer, then say why you need help, and everyone will help you gladly, there many tutorials out there on how to create a tar and how to use rsync, you could even search superuser - next time when you reply to someone who commented on your question, use @, to reply to me @Fischer so i can be notified that you replied to me, otherwise I may never reply to you. –  Fischer Sep 9 '13 at 12:26
show 2 more comments

1 Answer 1

up vote 3 down vote accepted

next time when you reply to someone who commented on your question, use @, to reply to me @Fischer so i can be notified that you replied to me, otherwise I may never reply to you.

I'll link to some tutorials.

To create a tarball

you go to the file location using cd, then you do

tar -cvf example.tar /example

Then to use rsync on a RedHat-based distribution

yum install rsync

or, if you are on Debian-based distribution

apt-get install rsync

then transfer to the new server

rsync -av -e ssh username@oldserverip:/path/to/example.tar /example.tar

(note that you have the option to gzip the file on-the-fly by adding the -z flag)

and at last untar on the new server, go to where the tar is located, use ls to help you see the file.

tar -xvf example.tar
share|improve this answer
    
user rsync command in newserver ? –  monkey_boys Sep 9 '13 at 13:33
    
@monkey_boys yes, in the command shown above, you need to install rsync on new server, and use rsync on new server, use the old server ip addresss, however if you want to install rsync on the old server and copy from it to new server, you'd use rsync -av -e example.tar username@newserveripaddress:~/location/where/you/want/to/transfer –  Fischer Sep 9 '13 at 14:00
    
please see the links i gave you: Task : Copy file from a local computer to a remote server –  Fischer Sep 9 '13 at 14:01
1  
@monkey_boys I didn't understand the question? what is the problem? –  Fischer Sep 9 '13 at 15:31
1  
@monkey_boys please read this superuser.com/questions/46441/rsync-as-a-background-process –  Fischer Sep 9 '13 at 15:37
show 2 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.