Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Copy files from Server to Server over ssh with rsync

stefki

Extended Member
Ext. Member
Joined
Nov 26, 2019
Messages
9
Reaction score
15
Points
14
Location
MKD
Hello all.

I am going to show you powerful linux command to copy large files and directories from server to remote server .

We are going to use rsync command which is more faster than scp and sftp

Lets says we have Directory full of movies on our Server A. Now we want to copy all the movies to remote server somewhere in the world :)

This is how magic is done:

Log in to your Server A over ssh console

if you don't have rsync already installed just do it:

PHP:
 apt-get install rsync -y

next command will launch the transfer and will ask you for root password of the remote server.

PHP:
 rsync -hrtplu --progress --stats /home/movies/ [email protected]:/home/movies

boom magic is done :)

192.168.2.95 it's my local ip address you should replace it with your own remote server ip address.

Now what about if your server SSH is listening on different port not the 22 default one.

You have to add -e option and full command will looks like this one

PHP:
  rsync -hrtplu --progress --stats -e "ssh -p 222" /home/movies/ [email protected]:/home/movies



Best Regards to all :)

enjoy
 
Last edited:

urgodfather

Banned
Banned
Ext. Member
Joined
Sep 22, 2019
Messages
2,098
Reaction score
5,937
Points
124
Location
neither here, nor there
rsync is great but my god, who wants to copy TB’s worth of data. Plus, you should put a throttle on it so your hosts don’t throttle it for you. Have a look at this thread and spare yourself the hassle. Either way, nice post. Put some of it behind THANKS bc you deserve likes for the write up.

 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

urgodfather

Banned
Banned
Ext. Member
Joined
Sep 22, 2019
Messages
2,098
Reaction score
5,937
Points
124
Location
neither here, nor there
Oh, also.... screen is handy when you have many files but don’t want to leave your ssh session open. Run it inside screen, detach it, and go about your day. Log back in later, reattach the screen and check it. ;)
 

traskin

Extended Member
Ext. Member
Joined
Oct 18, 2019
Messages
59
Reaction score
89
Points
29
Location
Spain
You can do it without rsync.

-From source server to dest server:

scp -l 400000 -r /somefolder/sourcefolder/folder root@ip_of_dest_server:/destfolder/folder

Where "-l 400000" is the speed bw limit.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock