How Do I Rsync a Directory in Linux?
Contents

How do I copy a directory in Linux using rsync?

If you want to copy a directory with its sub-directory and all contents from one location to another within your system, you can do so as by typing rsync followed by the source and destination directory. Note: Specifying “/” after the source directory only copies the contents of the directory.

How do I sync two folders in Linux?

rsync is a Linux CLI to copy or sync files between location A and B where location A and B can differ from network, host or device type. It is used at most by system admins to copy or move files through the network and even works on local files.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest