{"id":10987,"date":"2024-02-19T07:27:48","date_gmt":"2024-02-19T07:27:48","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=10987"},"modified":"2024-03-26T10:03:25","modified_gmt":"2024-03-26T10:03:25","slug":"how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/","title":{"rendered":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04"},"content":{"rendered":"<p><a id=\"post-10987-_u5u1t585tah4\"><\/a><a href=\"https:\/\/download.samba.org\/pub\/rsync\/rsync.1\">Rsync<\/a> (remote sync) is a command line tool for synchronizing files and directories across various machines. You can easily utilize it to transfer data, both locally and remotely. Rsync is commonly used for creating backups and transferring remote files.<\/p>\n<p>This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04. Also, check <a href=\"https:\/\/greenwebpage.com\/community\/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server-on-ubuntu-22-04\/\">How to Use SFTP to Securely Transfer Files with a Remote Server on Ubuntu 22.04?<\/a><\/p>\n<h2><strong>How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04?<\/strong><\/h2>\n<p>The given below procedural guide will be used to sync local and remote files and directories in Ubuntu 22.04:<\/p>\n<ul>\n<li>Method 1: Sync Local and Remote Files and Dictionaries via terminal<\/li>\n<li>Method 2: Sync Local and Remote Files and Directories through Rsync Script<\/li>\n<\/ul>\n<h3><strong>How to Establish Connection Between Local and Remote Server in Ubuntu 22.04?<\/strong><\/h3>\n<p>Using the following commands can connect you to the remote server in Ubuntu 22.04 machine.<\/p>\n<p><strong>Step 1: Install OpenSSH Server<\/strong><\/p>\n<p>To access the remote server from your local system, you need to install the OpenSSH server on your Ubuntu 22.04:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install openssh-server -y<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img fetchpriority=\"high\" decoding=\"async\" width=\"975\" height=\"462\" class=\"wp-image-10988\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-1.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-1.png 975w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-1-300x142.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-1-768x364.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/> <img decoding=\"async\" width=\"980\" height=\"558\" class=\"wp-image-10989\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-2.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-2.png 980w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-2-300x171.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-2-768x437.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/pre>\n<p>Once the installation process of OpenSSH is completed, you can proceed to the next step.<\/p>\n<p><strong>Step 2: Check SSH Status<\/strong><\/p>\n<p>Run the command to confirm whether OpenSSH is working correctly:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo systemctl status ssh<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"973\" height=\"485\" class=\"wp-image-10990\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-3.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-3.png 973w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-3-300x150.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-3-768x383.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/pre>\n<p>You will see the information about the current status of the SSH service.<\/p>\n<p><strong>Note: <\/strong>Make sure the <strong>ssh.service<\/strong> is running.<\/p>\n<p><strong>Step 3: Generate SSH Key<\/strong><\/p>\n<p>Generate an SSH key with the following command to ensure secure communication between your local and remote systems:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>ssh-keygen<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"533\" class=\"wp-image-10991\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-4.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-4.png 946w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-4-300x169.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-4-768x433.png 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/pre>\n<p><strong>Step 4: Copy SSH Key to Remote Server<\/strong><\/p>\n<p>Execute the command below to transfer your generated key to the remote server:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>ssh-copy-id techpub@127.0.0.1<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"413\" class=\"wp-image-10992\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-5.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-5.png 978w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-5-300x127.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-5-768x324.png 768w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/><\/pre>\n<p>This command allows you to log in to the remote server without entering a password.<\/p>\n<p><strong>Step 5: Test SSH Connection<\/strong><\/p>\n<p>Now, you can test the SSH connection to the remote server to ensure a successful setup without using a password:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>ssh techpub@127.0.0.1<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"389\" class=\"wp-image-10993\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-6.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-6.png 943w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-6-300x124.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-6-768x317.png 768w\" sizes=\"(max-width: 943px) 100vw, 943px\" \/><\/pre>\n<h3><strong>Method 1: Sync Local and Remote Data via Terminal<\/strong><\/h3>\n<p>Follow these commands to use rsync in terminal for syncronizing files in Ubuntu 22.04.<\/p>\n<p><strong>Step 1: Search for Directories in \/var\/www\/<\/strong><\/p>\n<p>From the remote server terminal, use the <strong>find<\/strong> command to inspect the source directory, such as <strong>\/var\/www\/<\/strong>:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo find \/var\/www\/ -type d<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"195\" class=\"wp-image-10994\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-7.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-7.png 967w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-7-300x60.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-7-768x155.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-7-960x195.png 960w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/pre>\n<p>Here, you can see the files in your \/var\/www\/ directory.<\/p>\n<p><strong>Step 2: Sync \/var\/www\/ to Local Machine<\/strong><\/p>\n<p>Use the following <strong>rsync<\/strong> command to synchronize the files and directories from <strong>\/var\/www\/<\/strong> on the remote server to your local machine (~\/Downloads\/sync-folder):<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>rsync -avz -e ssh techpub@127.0.0.1:\/var\/www\/ ~\/Downloads\/sync-folder<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1114\" height=\"344\" class=\"wp-image-10995\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-8.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-8.png 1114w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-8-300x93.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-8-1024x316.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-8-768x237.png 768w\" sizes=\"(max-width: 1114px) 100vw, 1114px\" \/><\/pre>\n<p>The <strong>-v <\/strong>flag is used to provide details about what&#8217;s happening during the process.<\/p>\n<p><strong>Step 3: Verify Directories in the Local \u201csync-folder\u201d<\/strong><\/p>\n<p>To confirm whether the files from <strong>\/var\/www\/<\/strong> have been successfully synchronized to the local path, execute the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo find ~\/Downloads\/sync-folder -type d<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1048\" height=\"196\" class=\"wp-image-10996\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-9.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-9.png 1048w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-9-300x56.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-9-1024x192.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-9-768x144.png 768w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" \/><\/pre>\n<p>As you can view in the above output that all the contents from the remote server are now available on your local machine.<\/p>\n<h3><strong>Method 2: Sync Local and Remote Data Through Rsync Script<\/strong><\/h3>\n<p>Through the following commands, you can create a script for synchronization between local and remote files.<\/p>\n<p><strong>Step 1: Create Backup Sync Script<\/strong><\/p>\n<p>To create a script for synchronization, you first need to generate a .sh file using the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo nano backup_sync.sh<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"50\" class=\"wp-image-10997\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-10.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-10.png 941w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-10-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-10-768x41.png 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/pre>\n<p><strong>Step 2: Type Script for Sync Files <\/strong><\/p>\n<p>Once you have opened the script file, type the provided script using <strong>rsync<\/strong> command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>rsync -avz -e ssh techpub@127.0.0.1:\/var\/www\/ ~\/Downloads\/sync-folder \n#source Destination<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"624\" class=\"wp-image-10998\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-11.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-11.png 974w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-11-300x192.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-11-768x492.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p><strong>Step 3: Make Sync Script Executable<\/strong><\/p>\n<p>Grant execution permission to the <strong>backup_sync<\/strong> script using the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo chmod +x backup_sync.sh<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"52\" class=\"wp-image-10999\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-12.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-12.png 897w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-12-300x17.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-12-768x45.png 768w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/pre>\n<p><strong>Step 4: Run Sync Script<\/strong><\/p>\n<p>To synchronize the local and remote files, simply execute the <strong>backup_sync.sh<\/strong> file from the terminal:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>.\/backup_sync.sh<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"344\" class=\"wp-image-11000\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-13.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-13.png 962w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-13-300x107.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-13-768x275.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/word-image-10987-13-960x344.png 960w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/pre>\n<p>You can see that directories from the remote server have been successfully received in the <strong>sync-folder<\/strong>.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In Ubuntu, <strong>rsync<\/strong> is a simple and easy-to-use command for synchronizing files. It allows you to sync both local and remote files and directories. There are two different methods for utilizing the rsync command: directly from the <strong>terminal<\/strong> and by using a <strong>.sh<\/strong> script file. This article explored both methods in detail, providing a detailed guide on how to use the rsync command to synchronize local and remote files and directories in Ubuntu 22.04.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Rsync (remote sync) is a command line tool for synchronizing files and directories across various machines. You can easily utilize it to transfer data, both locally and remotely. Rsync is commonly used for creating backups and transferring remote files. This article is about how to synchronize local and remote files and folders using Rsync in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11002,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[277,271,276,224],"class_list":["post-10987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-directories","tag-files","tag-rsync","tag-ubuntu-22-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-19T07:27:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T10:03:25+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04\",\"datePublished\":\"2024-02-19T07:27:48+00:00\",\"dateModified\":\"2024-03-26T10:03:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\"},\"wordCount\":664,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg\",\"keywords\":[\"Directories\",\"Files\",\"Rsync\",\"Ubuntu 22.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\",\"name\":\"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg\",\"datePublished\":\"2024-02-19T07:27:48+00:00\",\"dateModified\":\"2024-03-26T10:03:25+00:00\",\"description\":\"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community","description":"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community","og_description":"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-02-19T07:27:48+00:00","article_modified_time":"2024-03-26T10:03:25+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04","datePublished":"2024-02-19T07:27:48+00:00","dateModified":"2024-03-26T10:03:25+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/"},"wordCount":664,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg","keywords":["Directories","Files","Rsync","Ubuntu 22.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/","name":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg","datePublished":"2024-02-19T07:27:48+00:00","dateModified":"2024-03-26T10:03:25+00:00","description":"This article is about how to synchronize local and remote files and folders using Rsync in Ubuntu 22.04.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/02\/How-To-Use-Rsync-to-Sync-Local-and-Remote-Files-and-Directories-in-Ubuntu-22.jpg","width":1020,"height":600,"caption":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-rsync-to-sync-local-and-remote-files-and-directories-in-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How To Use Rsync to Sync Local and Remote Files and Directories in Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=10987"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10987\/revisions"}],"predecessor-version":[{"id":11195,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10987\/revisions\/11195"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/11002"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=10987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=10987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=10987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}