Discussion:
imsbackup/imsrestore question
Peter Kaldis
2012-03-15 21:17:26 UTC
Permalink
Hi Folks, we're running Oracle Communications Messaging Exchange Server 7u4-20.01 and I'm trying to make copies of some user folders from one user to another for legal archiving purposes.

Lets say I have userA and userB. And userA folder structure looks like this:

user/userA/INBOX
user/userA/directory1
user/userA/directory1/msgfolder1
user/userA/directory1/msgfolder2


and I want to copy them over to this path:

user/userB/userA/

so that userB folder structure would look like this:

user/userB/userA/INBOX
user/userB/userA/directory1
user/userB/userA/directory1/msgfolder1
user/userB/userA/directory1/msgfolder2


I figured i'd use imsbackup/imsrestore to do this. So parsed through the docs and created a mapfile and put "userA=userB" in there, and ran the following command

imsbackup -g -f- /primary/user/userA/directory1 | imsrestore -f- -g -n -m /tmp/mapfile /user/userB/userA

but I end up with this instead:

user/userB/directory1

Is there a way to do this with imsbackup/imsrestore, or should I be using a different tool?


-Peter Kaldis
Dan Petersen
2012-03-15 21:24:27 UTC
Permalink
Add a "-d userA" to the imsrestore command line, it will create a
userA directory and put the contents of the restore into it.
Post by Peter Kaldis
Hi Folks, we're running Oracle Communications Messaging Exchange Server 7u4-20.01 and I'm trying to make copies of some user folders from one user to another for legal archiving purposes.
user/userA/INBOX
user/userA/directory1
user/userA/directory1/msgfolder1
user/userA/directory1/msgfolder2
user/userB/userA/
user/userB/userA/INBOX
user/userB/userA/directory1
user/userB/userA/directory1/msgfolder1
user/userB/userA/directory1/msgfolder2
I figured i'd use imsbackup/imsrestore to do this. So parsed through the docs and created a mapfile and put "userA=userB" in there, and ran the following command
imsbackup -g -f- /primary/user/userA/directory1 | imsrestore -f- -g -n -m /tmp/mapfile /user/userB/userA
user/userB/directory1
Is there a way to do this with imsbackup/imsrestore, or should I be using a different tool?
-Peter Kaldis
--
Dan Petersen
Linux Systems Administrator
Academic Computing - Dempsey 307
University of Wisconsin Oshkosh
800 Algoma Blvd, Oshkosh WI 54901
Help Desk: (920)424-3020
Peter Kaldis
2012-03-15 21:52:01 UTC
Permalink
Sheesh, completely missed that in the docs.

Thanks, that worked like charm.
Add a "-d userA" to the imsrestore command line, it will create a userA directory and put the contents of the restore into it.
Post by Peter Kaldis
Hi Folks, we're running Oracle Communications Messaging Exchange Server 7u4-20.01 and I'm trying to make copies of some user folders from one user to another for legal archiving purposes.
user/userA/INBOX
user/userA/directory1
user/userA/directory1/msgfolder1
user/userA/directory1/msgfolder2
user/userB/userA/
user/userB/userA/INBOX
user/userB/userA/directory1
user/userB/userA/directory1/msgfolder1
user/userB/userA/directory1/msgfolder2
I figured i'd use imsbackup/imsrestore to do this. So parsed through the docs and created a mapfile and put "userA=userB" in there, and ran the following command
imsbackup -g -f- /primary/user/userA/directory1 | imsrestore -f- -g -n -m /tmp/mapfile /user/userB/userA
user/userB/directory1
Is there a way to do this with imsbackup/imsrestore, or should I be using a different tool?
-Peter Kaldis
--
Dan Petersen
Linux Systems Administrator
Academic Computing - Dempsey 307
University of Wisconsin Oshkosh
800 Algoma Blvd, Oshkosh WI 54901
Help Desk: (920)424-3020
Loading...