Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Rsync folder not work

    General pfSense Questions
    2
    2
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PaoloA
      last edited by

      I can't rsync a folder in pfsense from a linux server, but scp works.
      Where are I mistaken?

      scp -r 1.2.3.4:/var/lightsquid/report .

      Password:
      .total                                    100%  230    0.2KB/s  00:00
      192.168.83.12                              100%  23KB  23.1KB/s  00:00
      192.168.83.13                              100%  10KB  9.9KB/s  00:00
      192.168.83.3                              100%  557    0.5KB/s  00:00
      .features                                  100%  131    0.1KB/s  00:00
      .group                                    100%  171    0.2KB/s  00:00
      .realname                                  100%  70    0.1KB/s  00:00
      .total                                    100%  300    0.3KB/s  00:00
      ^C

      rsync -var -e "ssh" 1.2.3.4:/var/lightsquid/report .

      Password:
      rsync: not found
      rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
      rsync error: remote command not found (code 127) at io.c(635)
      [receiver=3.0.3]

      I am using port 322 instead of 22 for ssh in both pfsense and the linux box (but dont' thik this is the problem).

      Thanks, P.

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        I presume you are issuing the rsync command on a Linux system and expecting pfSense to respond.

        pfSense standard installs do not include the rsync and rsyncd utilities.

        The man page for rsync on my Ubuntu 12.04 netbook says of the "-e" option:

        If this option is used with [user@]host::module/path, then the remote  shell  COMMAND  will  be
                      used  to  run an rsync daemon on the remote host,

        Since there is no rsyncd on the remote host (pfSense) this won't work!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.