Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Can "rsync" command be used to list all the files?  (Read 2808 times)

0 Members and 1 Guest are viewing this topic.

Karun

  • Guest
Can "rsync" command be used to list all the files?
« on: October 07, 2014, 05:06:01 pm »
Can "rsync" command be used to list all the files?

Yes..!!

Rsync can be used to list directories in the server as:

rsync --list-only username@servername:/directoryname
This lists the directory with detail information.

To list all the files for a particular directory :

Simply insert a slash at the end of the command and it will show the folder contents, thus:

rsync --list-only username@servername:/directoryname/
« Last Edit: October 11, 2014, 03:49:19 pm by Shyam »