Rsync, Deltacopy, file ownership

  • Hi,


    I finally managed to get my Iomege HMNHD Cloud Edition (armv6) up and running with omv 0.4.38. Now I am trying to set up simple rsync jobs to backup some data from my Windows machines. I set up Deltacopy in server mode, configured a virtual directory and defined an rsync job in the OMV web gui. The job runs fine, files are transferred as expected. However ownership changes. Starting from the top level of the destination shared folder on the OMV NAS rsync changes all owner:group settings to 400:401 and sets file permissions to 700. Is there any way I can set a default owner:group and default file permissions in the web gui job definition?


    Thanks,
    Michael

  • Unix can not easily inherit windows privilges on his on filesystems and vice-versa.


    But you can simply run a script like that after your rsync command like


    Bash
    #!/bin/sh
    chown -R owner:group /path/to/rsync/destination/
    chmod 755 -R /path/to/rsync/destination/


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!