Results 1 to 4 of 4

Thread: Rsync: How have output of syncing paged when using --dry-run

  1. #1
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    778
    Distro
    Xubuntu

    Rsync: How have output of syncing paged when using --dry-run

    I am using the following command:

    sudo /usr/bin/rsync --dry-run -avx --delete --append-verify /media/makem/Windows/ pi@192.168.1.222:/media/pi/HDD1/shares/newPCwindows/

    It completes without errors but I want to check the output page by page. Where in that command would I add 'ls | less' to give me a paged output?

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Rsync: How have output of syncing paged when using --dry-run

    I'd send it all to a file with "> some_file_name" at the end of the command and browse the result afterward.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Jul 2015
    Location
    Essex, UK
    Beans
    778
    Distro
    Xubuntu

    Re: Rsync: How have output of syncing paged when using --dry-run

    Thank you

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Rsync: How have output of syncing paged when using --dry-run

    Redirecting stdout is easy. Sometimes programs throw their output to stderr instead, so you would want to redirect both stdout AND stderr to the file. https://github.com/jlevy/the-art-of-command-line is a README full of information for handling different things in a shell. I re-read it every year, since I'm not ready to learn some things. There's always something that I missed that was there in prior years, but I wasn't ready to use it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •