tmueko
Explorer
- Joined
- Jun 5, 2012
- Messages
- 82
Hi,
is there a way to synchronize the users between two freenas boxes?
My try would be to export from sqlite-database like this:
on the other side I would delete the user like this
and then feed whith the INSERS from the export. In addition there is account_bsdgroupmembership which has to be ex- and imported....
Is there a better way?
is there a way to synchronize the users between two freenas boxes?
My try would be to export from sqlite-database like this:
Code:
.mode insert select * from account_bsdgroups where "bsdgrp_gid" >= "1000" AND "bsdgrp_gid" < "65533"; select * from account_bsdusers where "bsdusr_uid" >= "1000" AND "bsdusr_uid" < "65534";
on the other side I would delete the user like this
Code:
delete from account_bsdgroups where "bsdgrp_gid" >= "1000" AND "bsdgrp_gid" < "65533"; delete from account_bsdusers where "bsdusr_uid" >= "1000" AND "bsdusr_uid" < "65534";
and then feed whith the INSERS from the export. In addition there is account_bsdgroupmembership which has to be ex- and imported....
Is there a better way?