Beberapa waktu lalu saya kebagian untuk merelokasi akun cpanel dengan penggunaan disk space yang cukup besar. Setelah cek and ricek, relokasi akun harus saya lakukan secara parsial untuk mempermudah pemindahan data dan memastikan semua data telah direlokasi dengan baik. Sayangnya lagi saya tidak memiliki akses ssh ke server client untuk melakukan rysnc.

Nah, karena file yang ingin saya download dalam bentuk folder, maka saya menggunakan alternatif ftp dengan ncftp. Aplikasi ini dapat diunduh melalui http://www.ncftp.com/ncftp/

1. Cek ketersedian  dan installasi


[root@server ~]# yum list available | grep ncftp
ncftp.x86_64                          2:3.2.1-1.el5.kb        kbs-CentOS-Testing

[root@server ~]# yum -y install ncftp.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ecvps.com
* extras: centos.mirror.facebook.net
* updates: mirror.web-ster.com
base                                                                                                                                         | 1.1 kB     00:00
extras                                                                                                                                     | 2.1 kB     00:00
kbs-CentOS-Extras                                                                                                             | 1.9 kB     00:00
kbs-CentOS-Testing                                                                                                            | 1.9 kB     00:00
updates                                                                                                                                      | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncftp.x86_64 2:3.2.1-1.el5.kb set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
Package                          Arch                              Version                                     Repository                                     Size
====================================================================================================================================================================
Installing:
ncftp                            x86_64                            2:3.2.1-1.el5.kb                            kbs-CentOS-Testing                            566 k

Transaction Summary
====================================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 566 k
Downloading Packages:
ncftp-3.2.1-1.el5.kb.x86_64.rpm                                                                                                              | 566 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : ncftp                                                                                                                                        1/1

Installed:
ncftp.x86_64 2:3.2.1-1.el5.kb

Complete!

2. Memulai relokasi direktori

[root@vps jum]# ncftpget -R -v -u "usernya" ftp.serversaya.com /home/jum/ public_html/wp-admin
Password: *********
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
/home/jum/wp-admin/.htaccess:                          111.00 B     5.14 kB/s
...min/1568d5b67a905b7e9199251eaa018e00_google.cache:    6.38 kB   29.54 kB/s
...dmin/617404005db51aaffab4502d052b34a4_alexa.cache:  309.00 B   498.05 B/s
/home/jum/wp-admin/about.php:                           10.57 kB   17.07 kB/s
/home/jum/wp-admin/admin-ajax.php:                      48.31 kB    4.98 kB/s

Note :

Command : ncftpget -R -v -u “usernya” ftp.serversaya.com /home/jum/ public_html/wp-admin
* Usernya = user ftp

* /home/jum/ = destination folder untuk meletakan file dan folder hasil download

* public_html/wp-admin = dir yang akan didownload beserta file-file