•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Rsync Dua Direktori

  • Home
  • Client
  • Qa Forum
  • Rsync Dua Direktori

Posted By: ling | 1 Replies | Last Reply On: Jul 11, 2017 02:04:28

Bagaimana rsync dua direktori?

Psychz - Manish

Votes: 0Posted On: Jul 11, 2017 02:04:28
 

"Rsync" adalah alat penyalinan serbaguna yang disediakan oleh distribusi Linux. Ini digunakan untuk menyalin file ke / dari remote host melalui remote shell. Rsync paling baik digunakan untuk sinkronisasi file dalam hal backup dan mirroring. Anda dapat menyimpan data Anda dengan aman dengan menyalin data sensitif ke host jarak jauh dan mengambilnya kapan pun diperlukan. Ini juga berisi opsi untuk melakukan operasi. Perintah "rsync" memperbarui folder dengan menambahkan file baru yang akan disalin dan menghindari penimpaan file.


Prasyarat

1. "rsync" harus diinstal pada sistem anda. Untuk memeriksa apakah rsync terinstal, jalankan perintah berikut.


Rsync --version

2. Jika perintah rsync tidak terpasang, instal dengan menjalankan perintah berikut.


Sistem Operasi berbasis RPM - yum -y install rsync
Debian / Ubuntu - apt-get install rsync

3. Pastikan IP dimasukkan ke daftar putih pada firewall dari sistem jarak jauh dan lokal.

4. Koneksi SSH yang mapan antara mesin remote dan lokal.


Operasi Push

Menyalin file dari lokal ke sistem remote disebut operasi "push". Sintaks perintahnya adalah sebagai berikut.

Rsync -a path_of_local_directory username @ remote_host: destination_directory


Operasi tarik

Menyalin file dari remote ke mesin lokal disebut operasi tarik. Sintaks perintahnya adalah sebagai berikut.

Rsync -a username @ remote_host: path_of_remote_directory place_to_sync_on_local_machine


Perintah "rsync" memiliki banyak pilihan untuk digunakan dengannya. Beberapa pilihan penting dibahas di bawah ini.

# "-a" pilihannya sama dengan -rlptgoD. Berikut adalah beberapa fungsi yang "-a" pilihan lakukan.

1.Descend secara rekursif ke semua direktori (-r),
2.copy symlinks sebagai symlinks (-l),
Izin file 3.Preserve (-p),
Waktu modifikasi 4.Preserve (-t),
5.Preserve groups (-g),
6.Preserve file ownership (-o), dan
7. Menjaga perangkat sebagai perangkat (-D).

# "-z" pilihan digunakan untuk memampatkan file saat mengirimnya.

# "-P" pilihannya sama dengan - bela diri dan - kemajuan.

- bela diri - Ini digunakan untuk melanjutkan transfer terputus.
--progress - Digunakan untuk menampilkan progress bar dari transfer.

# "-v" - Ini digunakan untuk menampilkan hasilnya dengan cara yang lebih verbose.

Perintah "rsync" dilengkapi dengan banyak pilihan. Dianjurkan untuk menggunakan perintah "man" dengan rsync untuk menguasai semua pilihan. Perintahnya adalah sebagai berikut.

Manusia rsync

Was this reply helpful?

Related topics

  • How to rsync two directories
  • sBlock - Backup on RHEL, CentOS, AlmaLinux & Rocky Linux
  • sBlock - Backup on Debian, Ubuntu and Related OS
  • Lima Open Source Software Backup untuk Linux
  • Rsync over SSH
  • Cara menggunakan rsync lebih SSH?
  • Sumber Kloning Software terbaik Terbuka
  • Path Mapping
  • OpenShift vs. Docker
  • Learn About Colocation Benefits And How To Get Started
  • Jaringan Psikzal Melindungi Klien dari Massal 400 Gbps Mirai Botnet DDoS Attack
  • How to build a private cloud using bare metal servers?
  • Full Rack In Ashburn
  • Can I bring my own IP address space for bare metal servers?
  • "DDoS for hire" service Webstresser.org taken down by collaborative effort
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801