Moderators: ScalixSupport, admin
Code: Select all
'Tommy Tester /restore,mydomain/CN=Tommy Tester'
InTray: 5 messages
OutTray: 0 messages
Folder 'Search Area': 0 items
Folder 'Calendar': 0 items
Folder 'Contacts': 0 items
Folder 'Drafts': 0 items
Folder 'Notes': 0 items
Folder 'Tasks': 0 items
Tracking Area: 0 messages
List Area: 0 messages
Waste Basket: 0 items
Code: Select all
RESTORE_FILE_EXT=`expr match "$RESTORE_FILE" ".*\.gz"`
if [ "$RESTORE_FILE_EXT" != 0 ]
then
echo_and_log "Specified data file is a gz file, extracting"
gzip -cd "$RESTORE_FILE" > "${BACKUP_DIR}/tmprestorefile"
RESTORE_FILE="${BACKUP_DIR}/tmprestorefile"
fi
$SCALIX_BIN/omcpinu -f $RESTORE_FILE -m $RESTORE_MN >>$LOGFILE
if [ "$?" != "0" ]
then
exit_with_error "Failed to load mailbox data from $RESTORE_FILE. There may be more information available in the logfile at $LOGFILE"
else
echo_and_log "Finished loading mailbox data from $RESTORE_FILE"
fi
if [ -f "${BACKUP_DIR}/tmprestorefile" ]
then
echo_and_log "Removing tmp extracted datafile"
rm "${BACKUP_DIR}/tmprestorefile"
fi
Code: Select all
RESTORE_FILE_EXT=`expr match "$RESTORE_FILE" ".*\.gz"`
if [ "$RESTORE_FILE_EXT" != 0 ]
then
zcat $RESTORE_FILE | $SCALIX_BIN/omcpinu -f - -m $RESTORE_MN >>$LOGFILE
else
$SCALIX_BIN/omcpinu -f $RESTORE_FILE -m $RESTORE_MN >>$LOGFILE
fi
if [ "$?" != "0" ]
then
exit_with_error "Failed to load mailbox data from $RESTORE_FILE. There may be more information available in the logfile at $LOGFILE"
else
echo_and_log "Finished loading mailbox data from $RESTORE_FILE"
fi
marijnvanbutselaar wrote:Am I missing something, or what. I created a backup with the ombackup command, witch was successful.
Then I did omrestore -u "sxadmin" -f "/backup/users/<MAILNODE>/sxadmin-<DATE>-mail.gz" and got a "Error: Failed to load mailbox data from <ABOVE FILENAME>. There may be more information available in the logfile at <LOGFILE>"
Then I manually gunziped the <datafile.gz>, and used that instead. This worked file.
So, modified the restore script to do this for me, maybe you could include it:Code: Select all
RESTORE_FILE_EXT=`expr match "$RESTORE_FILE" ".*\.gz"`
if [ "$RESTORE_FILE_EXT" != 0 ]
then
echo_and_log "Specified data file is a gz file, extracting"
gzip -cd "$RESTORE_FILE" > "${BACKUP_DIR}/tmprestorefile"
RESTORE_FILE="${BACKUP_DIR}/tmprestorefile"
fi
$SCALIX_BIN/omcpinu -f $RESTORE_FILE -m $RESTORE_MN >>$LOGFILE
if [ "$?" != "0" ]
then
exit_with_error "Failed to load mailbox data from $RESTORE_FILE. There may be more information available in the logfile at $LOGFILE"
else
echo_and_log "Finished loading mailbox data from $RESTORE_FILE"
fi
if [ -f "${BACKUP_DIR}/tmprestorefile" ]
then
echo_and_log "Removing tmp extracted datafile"
rm "${BACKUP_DIR}/tmprestorefile"
fi
An other way of doing this could be done with a zcat pipe like (BUT CAN'T GET IT TO WORK, missing something there):Code: Select all
RESTORE_FILE_EXT=`expr match "$RESTORE_FILE" ".*\.gz"`
if [ "$RESTORE_FILE_EXT" != 0 ]
then
zcat $RESTORE_FILE | $SCALIX_BIN/omcpinu -f - -m $RESTORE_MN >>$LOGFILE
else
$SCALIX_BIN/omcpinu -f $RESTORE_FILE -m $RESTORE_MN >>$LOGFILE
fi
if [ "$?" != "0" ]
then
exit_with_error "Failed to load mailbox data from $RESTORE_FILE. There may be more information available in the logfile at $LOGFILE"
else
echo_and_log "Finished loading mailbox data from $RESTORE_FILE"
fi
florian wrote:Hi,
at this point, to be able to use "Open Other users folder" you will have to have delegate access on the mailbox. to assign those permissions, you'll have to login to the account first.
You can use the internet address or the authentication id (which must both be unique) to login through both outlook and imap.
understand that this is not the most convenient way to do things. we're working on adding to the backup and restore options available in the next major scalix release. wait for some pretty exciting announcements this coming summer.......
cheers,
Florian.
Are you really trying to restore the sxadmin user mailbox? Also, I gunzipped the mailbox archive before running omrestore, and then it was successful.
cdclark wrote:Are you really trying to restore the sxadmin user mailbox? I ,too, gunzipped the mailbox archive before running omrestore, and then it was successful.
marijnvanbutselaar wrote:Think I will just implement a basic backup scheme (tar.gz the /var/opt/scalix) for crashes only. Don't think I will bother with Single User/File restore anymore... To much work to get it up and running, and don't like the idea of having to create a restore mailnode for it. (And SUR, ISS, etc. are a bit of a pain too to implement)
Will wait until the summer release then... ;-)
Question:
Is a tar.gz of the /var/opt/scalix all you need for a full system backup??
ja30278 wrote:To be honest, I'm actually thinking of scrapping the migration altogether, so I may not be making any further updates to my scripts.
florian wrote:Hi,
at this point, to be able to use "Open Other users folder" you will have to have delegate access on the mailbox. to assign those permissions, you'll have to login to the account first.
cheers,
Florian.
That would be unfortunate. I really appreciate the work you've put in.
As for my migration, I'm holding off until at least the next release for a few reasons:
-Clumsy backups/restores
-Inability to desktop sync with a modern blackberry (and crazy prizing from Notify link). Bring on the funambol!
-some other issues I can't recall at the moment
On the flip side, I'm pleased with the new small business pricing announced this week.
In the meantime I'll continue to use CE for myself and a few key players in the company, and use the opportunity to really learn the product on this release before moving on to the next.
Users browsing this forum: No registered users and 11 guests