rsync to a module on another nas

  • I have two omv

    On the pi-nas I created an rsync module called srv-nas-pi

    On srv-nas-pi I attempt to create a rsync task I'm using this as push


    source: /pool0/backup

    destination: rsync://admin@pi-nas:srv-nas-pi/backup


    I get the error : sh: Could not resolve hostname rsync: Name or service not known


    the host is pingable with the name in the destination.


    What would be the correct destination string?

    • Official Post

    I don't think you're doing it right.


    Option 1:

    Server A -> Create an rsync module on this server

    Server B -> Create a pull task to copy from the module on Server A to the folder on Server B.


    Option 2:

    Server A -> Create an rsync module on this server

    Server B -> Create a push task to copy to the module on Server A from the folder on Server B.


    To avoid permission issues, Option 1 is preferable if possible.

  • And what it makes it harder are these error messages:

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color rsync 2>&1' with exit code '1': pi-nas:

    ----------

    ID: configure_rsync_cron

    Function: file.managed

    Name: /etc/cron.d/openmediavault-rsync

    Result: True

    Comment: File /etc/cron.d/openmediavault-rsync is in the correct state

    Started: 16:44:27.569587

    Duration: 200.228 ms

    Changes:

    ----------

    ID: rsync_create_cron_scripts_dir

    Function: file.directory

    Name: /var/lib/openmediavault/cron.d

    Result: True

    Comment: The directory /var/lib/openmediavault/cron.d is in the correct state

    Started: 16:44:27.770003

    Duration: 1.3 ms

    Changes:

    ----------

    ID: remove_rsync_cron_scripts

    Function: module.run

    Result: True

    Comment: file.find: []

    Started: 16:44:27.772302

    Duration: 1.548 ms

    Changes:

    ----------

    file.find:

    ----------

    ID: configure_rsync_cron_script_df3b7618-6050-4696-836a-be93db44683a

    Function: file.managed

    Name: /var/lib/openmediavault/cron.d/rsync-df3b7618-6050-4696-836a-be93db44683a

    Result: False

    Comment: Unable to manage file: Jinja error: No such object: //system/fstab/mntent[uuid='125cf708-9232-4bcd-979e-1d817eccd83c']

    Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl

    output = template.render(**decoded_context)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    • Official Post

    But this hint is totally confusing me:

    Ask chatgpt to explain it.

    omv 7.7.5-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • theking2

    Added the Label resolved
  • theking2

    Changed the title of the thread from “rsync to a module on another nax” to “rsync to a module on another nas”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!