• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

December 13, 2012 by Sharad Chhetri

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

I have used these flags -ravpzHogt along with rsync command many times in server migration. And I always get good results.

Key features**
(1) Date Time stamp of files and folder remain same as you find in source server.
(2) Hidden files or directory recursively transfer to destination server
(3) symlinks and hardlinks also transferred to destination server
(4) Ownership,Group,file/dir permissions remain same.

Given below is the eg. of rsync command.

rsync -ravpzHogt -e ssh /opt/* root@remote_server:/opt/

To know about each flags.Plz. read “man rsync”

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. rsync over ssh port number on Linux/Unix system
  2. find command to search keyword in files recursively in linux
  3. How to rename and move the directory and files in linux
  4. list files and directories by 4 commands in linux
  5. linux command to list the files from rpm package without extracting
  6. Extract single and selected files from RPM package on Linux
  7. Read the file inside compressed .gz files without extract
  8. subtract integer written in columns from 2 different files
  9. Your data directory and files are probably accessible from the internet because the .htaccess file does not work owncloud
  10. How to protect from port scanning and smurf attack in Linux Server by iptables

Filed Under: Linux, Tips And Tricks Tagged With: rsync

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

send email after mysql backup through bash script in simple way

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

curl command to check the http status

30 useful Linux terminal keyboard shortcuts

Forgot root password ,Reset it in Run level 1

Set GRUB password after installation of CentOS/Red Hat

Run the script using nohup without hitting enter key two times

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy