user backup & copy

Author Message

Rinze Cats

Monday 18 October 2004 2:10:28 am

I have a set of users and roles that I need to use for a number of sites. Is there a way to copy them from one site(database) by using an sql export and import them into another?

thanx rinze

Frederik Holljen

Monday 18 October 2004 4:03:51 am

You can export/import users using packages (available from the setup tab).
setup -> packages -> new package -> content object export

There is currently no way to export / import roles.

Marco Zinn

Monday 18 October 2004 1:25:29 pm

I guess, you could export roles and permissions by dumping the SQL tables for these things. But that's a pain. IF you do this, you should dump and import ALL roles and permissions, overwriting your "old" roles/permissions on the "slave" systems.
This may be an option, if you can live with completly identical roles&permissions in all installations.

Proceed with extreme caution, when handling users, roles and permissions. You may "lock out" your users faster than you can says "ooops"!!!! Do backups! Do backups!

Marco
http://www.hyperroad-design.com

Rinze Cats

Tuesday 19 October 2004 1:12:15 am

Hi guys and thanx for the replies
These are fresh installs, so locking out users at this stage is no problem. Does anyone know which tables should I export to copy all role/user information?

rinze

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:25:33
Script start
Timing: Jan 31 2025 06:25:33
Module start 'layout'
Timing: Jan 31 2025 06:25:33
Module start 'content'
Timing: Jan 31 2025 06:25:33
Module end 'content'
Timing: Jan 31 2025 06:25:33
Script end

Main resources:

Total runtime0.0130 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.0156151.1953
Module start 'layout' 0.00440.0027 739.210936.6172
Module start 'content' 0.00710.0038 775.828190.1250
Module end 'content' 0.01090.0020 865.953133.9922
Script end 0.0129  899.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.0536140.0002
Check MTime0.00108.0301140.0001
Mysql Total
Database connection0.00064.560510.0006
Mysqli_queries0.002418.536430.0008
Looping result0.00000.092010.0000
Template Total0.001712.910.0017
Template load0.00096.635610.0009
Template processing0.00086.227210.0008
Override
Cache load0.00064.398610.0006
General
dbfile0.00032.163480.0000
String conversion0.00000.060740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs