This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Force RSync to write everything as 755

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Force RSync to write everything as 755

Post by juddyjacob »

How do I force RSync to write everything as 755?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

unkis17
Starter
Starter
Posts: 17
Joined: 27 Jun 2012 03:46
Status: Offline

Re: Force RSync to write everything as 755

Post by unkis17 »

In case you haven't already figured this out, you can specifiy a Chmod command in the extra options to change files. Below are my extra options for one of my rysnc jobs.

--exclude-from="/mnt/storage/bin/exclude.rsync" --chmod=u=rwx,g=rwx
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Force RSync to write everything as 755

Post by juddyjacob »

Thank you so much! That is exactly what I needed! I will try it as soon as I get home! :)
Do I just add the chmod=...... or do I have to add the whole string. Thanks very much!
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Force RSync to write everything as 755

Post by juddyjacob »

Aye, Aye Aye, No matter how I put it in after I save it it says "1"

Just did a little research and there are threads stating a possible bug with the extra options?
Unless I am just submitting the code incorrectly!

I added the code as:

chmod=u=rwx,g=rwx

also

--exclude-from="/mnt/storage/bin/exclude.rsync" --chmod=u=rwx,g=rwx

also

--chmod=u=rwx,g=rwx

I am assuming that the first or the last is correct as I dont have a "mnt/bin" unless i am supposed to substitute my mout path for the rsync destination?

--exclude-from="/mnt/mymountname/chmod=u=rwx,g=rwx

Any other Suggestions?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

unkis17
Starter
Starter
Posts: 17
Joined: 27 Jun 2012 03:46
Status: Offline

Re: Force RSync to write everything as 755

Post by unkis17 »

Juddy,

You took my example too literally. what you want to do is use the "extra options" in the WebGUI (which it seems you have read the thread that something seems to be wrong here with the "1". I am unsure myself, waiting to hear about it). BUT when the extra options do work (at least it isn't working for me)...

you want to type:

--chmod "XXX" where "XXX" is the mask you are looking for. In your specific case you asked for 755 thus:

--chmod=u=rwx,g=rx,o=rx

u = user , g = group , o = other

HTH

Unkis
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Force RSync to write everything as 755

Post by juddyjacob »

I wonder if this if it could be an issue related to using zfs? has anyone tried using the extra options using cfs?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

unkis17
Starter
Starter
Posts: 17
Joined: 27 Jun 2012 03:46
Status: Offline

Re: [SOLVED] Force RSync to write everything as 755

Post by unkis17 »

Judy,
I see you have this thread marked solved,did you get it working? I downloaded latest image this weekend but have not flashed as of yet.

BTW, I have all zfs shares and it has worked in past and still works on sync jobs without extra options
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: [SOLVED] Force RSync to write everything as 755

Post by juddyjacob »

I did not mark it solved, if I did it was by accident, I have not been able to make everything write to the 755 mask. I wish I could help but im afraid im just paciently waiting for it to get fixed
Last edited by juddyjacob on 18 Dec 2012 04:45, edited 1 time in total.
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

unkis17
Starter
Starter
Posts: 17
Joined: 27 Jun 2012 03:46
Status: Offline

Re: Force RSync to write everything as 755

Post by unkis17 »

Why don't you write a short script using sync command line & run it via crown to see if their is any differ results
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Force RSync to write everything as 755

Post by juddyjacob »

Unfortunally I'm GUI friendly at my BSD experience level, to boot I dont have much experience writing scripts. The only one I ever wrote was for power options in windows machines. I've searched quite a bit tring to learn BSD. I even bought FreeBSD 6 Unleashed, and SAMS FreeBSD. I've learned a lot but still struggle to get the whole picture when it comes to Unix like operating systems. Basicly tring to learn it in my spare time. Which I dont really have a lot of! LOL. What is crown? I searched for that too but didnt find any identifing results?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

unkis17
Starter
Starter
Posts: 17
Joined: 27 Jun 2012 03:46
Status: Offline

Re: Force RSync to write everything as 755

Post by unkis17 »

Juddy,

Sorry for the long delay I was out of town... In case you didn't read the other Rsync threads as of R573 I have confirmed extra options to be working again. I updated my --Chmod option and all is working. You should give it a try now.
NAS4Free 10.3.0.3 R4107 X64 Embedded, 16 GB, AMD-FX-4100 4 Core CPU, 4x2T RaidZ1 on ASUS M5A88-M MoBo, 3x1T RaidZ1 on LSI SAS2008IT

Post Reply

Return to “RSYNC”