Back to Browse

Migrate a Linux VPS with Rsync

2.2K views
Dec 2, 2024
8:58

Migrating your Linux VPS to a new server with Rsync is efficient and reliable. Rsync, a powerful file synchronization tool, enables you to transfer files, directories, and permissions while maintaining data integrity. This guide walks you through the process of using Rsync to migrate your entire VPS, ensuring a seamless transition with minimal downtime. ๐Ÿ“– To learn more, read our blog at https://blog.racknerd.com/how-to-migrate-from-old-vps-to-new-vps-using-rsync-migrating-a-linux-vps/ and SUBSCRIBE ๐Ÿ‘ to this channel. ๐Ÿ“บ ๐Ÿ”— RELATED LINKS: ๐Ÿ’ป Bitvise SSH Client https://bitvise.com/download-area ๐Ÿ›’ Get VPS Hosting https://www.racknerd.com/kvm-vps ๐Ÿ›’ Domains https://my.racknerd.com/cart.php?a=add&domain=register ๐ŸŒ Check DNS Propagation https://dnschecker.org ๐ŸŽฅ Free Courses https://youtube.com/@RackNerdTV/playlists ๐Ÿ”— RELATED VIDEOS: ๐Ÿ“บ How to Order VPS Hosting at RackNerd https://youtu.be/oxESvhY-uuU ๐Ÿ“บ How to Setup LAMP Stack [Free Course] https://www.youtube.com/playlist?list=PLz_jhI1KBj3iFsG8QmgtyhqnnveNG34a ๐Ÿ“บ How to Setup LEMP Stack [Free Course] https://www.youtube.com/playlist?list=PLz_jhI1KBj3iSLT9rwPu9VBf7SoaTkA6Y ๐Ÿ“บ How to Setup LOMP Stack [Free Course] https://www.youtube.com/playlist?list=PLz_jhI1KBj3hL1fu4STMbrxoI7H3MtTLU ๐Ÿ“บ Docker Hosting Tutorials [Free Course] https://www.youtube.com/playlist?list=PLz_jhI1KBj3g4scyyVU9mliI5WWZbecl0 ๐Ÿ“บ More Installation Tutorials https://www.youtube.com/watch?v=jz6bu3Zi3gs&list=PLz_jhI1KBj3hcSy0jbGLDqTkHg6X95UoR โณ Timestamps: 00:00 Intro 00:24 Recommended Experience Level 01:02 Other Migration Methods 02:16 Prerequisites 03:26 Installing Rsync 04:00 Exclusion List 04:21 Migration 05:58 Verification 06:34 Limitations of Rsync 07:45 Closing ### LINUX COMMANDS ### cat /etc/os-release rsync --version For CentOS, AlmaLinux, or Rocky Linux: yum install rsync -y For Ubuntu or Debian: apt-get update && apt-get install rsync -y nano /root/excludedfiles.txt /etc/fstab /etc/sysconfig/network-scripts/* /etc/systemd/network/* /etc/network/* /etc/netplan/* /etc/NetworkManager/* /etc/resolv.conf /etc/hostname /etc/hosts /etc/machine-id /var/lib/dbus/machine-id /proc/* /tmp/* /sys/* /dev/* /mnt/* /boot/* /boot/grub/* /etc/default/* /run/* /var/run/* /var/lock/* /media/* /lost+found /swapfile /swap.img /var/lib/rpm/* /var/lib/yum/* /etc/sysconfig/iptables /etc/iptables/rules.v4 /etc/iptables.rules /var/lib/iptables/rules-save /etc/ssh/* /var/crash/* /var/log/*/* /var/cache/apt/* /var/lib/apt/lists/* /var/lib/cloud/* /sys/class/dmi/id/product_uuid /etc/udev/* /lib/modules/* /lib/firmware/* /lib64/modules/* /lib64/firmware/* Save the file by pressing CTRL + X, then press Y to confirm, and hit Enter to exit the editor. cd touch sample.txt run this rsync command from the source server: rsync -vPa -e 'ssh -p 22 -o StrictHostKeyChecking=no' --exclude-from=/root/excludedfiles.txt / [email protected]:/ ls ### LINUX COMMANDS ### Moving forward... โ˜‘ Watched the video! โ˜ Liked? โ˜ Shared? โ˜ Comment? โ˜ Subscribed? To learn more About RackNerd: Visit our website https://www.racknerd.com Read the Blog https://blog.racknerd.com Contact Us https://racknerd.com/contact-us Explore RackNerd's Web Hosting Services: KVM VPS Hosting Plans https://racknerd.com/kvm-vps Reseller Web Hosting https://racknerd.com/shared-hosting Shared Web Hosting https://racknerd.com/shared-hosting Black Friday VPS Deals https://youtube.com/shorts/BP4UFTG5U10 Make Money with Us at RackNerd: Learn to Start a Web Company at $50 https://youtu.be/ip3OE5w1VXY Earn Passive Income with RackNerd https://blog.racknerd.com/earn-money-with-racknerd-affiliate-program-details/ Follow us on Social Media: Twitter: https://twitter.com/RackNerd Facebook: https://facebook.com/RackNerd Instagram: https://instagram.com/RackNerd YouTube: https://youtube.com/@RackNerdTV TikTok: https://tiktok.com/@RackNerd Track: Chris Henry - Flash Watch: https://www.youtube.com/watch?v=t8rdfmWk2cM Stream: https://frequency.lnk.to/flashID #RackNerd #Rsync #LinuxVPS #ServerMigration #DataTransfer #LinuxHosting #VPSMigration #ServerManagement

Download

0 formats

No download links available.

Migrate a Linux VPS with Rsync | NatokHD