Category: How to: Import Interworx Hosting Accounts

Import a Single Account

Import Through NodeWorx

If you prefer to use the web interface, follow the steps below.

  1. Click the SiteWorx > Import menu item.
  2. Click the Import Single Account button.
  3. Choose from the list of available resellers in the dropdown labeled Reseller ID.
  4. Click the Choose File button for a Local Backup File or the Use a file already on the system link for a Remote Backup File.
    1. Choose Local Backup File if you have a backup file saved on your computer’s hard drive.
    2. Choose Remote Backup File if you have a backup file saved on the server. You will need to type in the fully-qualified path to the file. For example, if you have a backup file named testaccount.tar.gz in /tmp/backups/, you would enter: /tmp/backups/testaccount.tar.gz
  5. Choose the control panel from which this backup was created from the dropdown labeled Control Panel Type. For example, choose InterWorx Control Panel (all) if this backup was created by InterWorx Control Panel.
  6. Choose from the list of available IP addresses in the dropdown labeled IP Address. If the backup was created in InterWorx, IP addresses may be assigned manually at this point.
  7. Select a database server from the appropriate dropdown.
  8. Click the Next button.
  9. If there is already an existing SiteWorx account with the same domain name you will be asked to confirm. Click the Import button to finish.

Import Through CLI

The command line backup interface is less user-friendly, but you have a lot more options at your disposal. Using the command line interface is most useful when you want to automate (e.g., via CRON) the creation of SiteWorx account backups.

You should be familiar with the Linux command line to use this method.
  1. SSH into the server
  2. su to the iworx system user. You may need to switch to the root user first (if you’re not already logged in as the root user) and then switch to the iworx user.

The command you will be running is, as the iworx user:

iworx@test-box ~]$ /home/interworx/bin/import.pex

import.pex has several command line parameters:

Required Parameters
Parameter Description
--archive=file Path and filename of backup file to import.
--ip-address=ip-address IP address to use for the imported account. The IP address must be a valid shared or unused dedicated IP address. inifile is also a valid input for this parameter when importing a SiteWorx account (uses old IP found inside backup).
--control-panel=cptype Indicates the control panel from which this backup was created. Valid values:

  • siteworx
  • cpanel
  • plesk
  • directadmin
  • ensim
Optional Parameters
Parameter Description
--force Tells import.pex to force the restore which will delete any existing SiteWorx account, without a confirmation prompt, before restore proceeds. This is necessary when trying to revert to an older state of a SiteWorx account from a backup.
--reseller-id=id number Tells import.pex to assign the account to a particular reseller account. If this parameter isn’t used the account will be assigned to the NodeWorx administrator.
--create-reseller Tells import.pex to create the reseller that’s stored in the backup file. If the reseller in the backup file already exists, the account will automatically be imported under this reseller.

The usage of the import command can be reviewed by running import.pex without parameters.

To restore SiteWorx backup file /tmp/backup.tar.gz with a prompt to confirm deletion of the existing SiteWorx account:

[iworx@test-box ~]$ /home/interworx/bin/import.pex 
--archive=/tmp/backup.tar.gz 
--control-panel=siteworx 
--ip-address=inifile

To restore SiteWorx backup file /tmp/backup.tar.gz without a prompt to confirm deletion of the existing SiteWorx account:

[iworx@test-box ~]$ /home/interworx/bin/import.pex 
--archive=/tmp/backup.tar.gz 
--control-panel=siteworx 
--ip-address=inifile 
--force

Import Multiple Accounts From a Remote Server

  1. Click the SiteWorx > Import menu item.
  2. Click the Import Mass Transfer button.
  3. In the Hostname: field, enter the hostname of the remote server from which you want to migrate.
  4. In the Root User: field, enter the root user of the remote server from which you want to migrate.
  5. In the Password: field, enter the password for the root user you entered above.
  6. Click the Query Accounts button.
  7. You will now see a list of accounts on the remote server, with a checkbox next to each account.
  8. Mark the checkboxes next to accounts you would like to migrate.
  9. Select the destination Reseller you want to use for each migrated account from the Reseller column. If the remote reseller doesn’t already exist on the destination server, you will have the option to import the remote reseller. If the reseller in the backup file already exists, the account will automatically be imported under this reseller.
  10. Select the IP Address you want to use for each migrated account from the IP Address column.
  11. There are also “Advanced Options” dropdowns at the top of each group of accounts, allowing you to quickly and easily set options for all the accounts in the list. For example, choosing an IP Address in the Advanced Options section will select that IP for all accounts.
  12. A Storage Used column will appear, indicating the approximate amount of disk space the account is using on the remote server.
  13. A Type option will appear for each account, allowing you to choose either a “Full Import” or “Structure-Only Import”. Structure-only imports are much smaller and faster than full imports, but only import SiteWorx account related information (such as quotas, usernames, passwords, etc) and not actual data (such as website data files, database data, and email files). Structure-only is especially useful when mass-transferring large accounts, since large accounts can take a considerable amount of time to mass-transfer.
  14. Select Import … from the drop-down list at the bottom of the table.
  15. You will now see a list of the accounts you chose to mass transfer, along with a status for each account under the Import Status column.
    1. In Progress – Account is currently being backed up, transferred over from the remote server, and imported into InterWorx Control Panel.
    2. Pending – Account is waiting for import process to begin.
    3. Success – Import of account succeeded.
    4. Failure – Import of account failed. A message that indicates possible reasons for failure will appear beneath the Failure box.
  16. The page will automatically reload after a certain interval to update the import status of each account.
  17. When the mass transfer process is complete, all accounts will either have a Success or Failure status in the Import Status column.
If you leave this page, the mass account transfers will still continue in the background. However, if you return to this page, you will no longer be able to see the status of any of the accounts.

Troubleshooting:

If you get a Permission Denied error after clicking the Query Accounts button on the first Mass Account Transfer page, check the following:

  1. You have entered the correct root password.
  2. You have entered the correct root username.
  3. Double check that the remote server allows the root user to SSH in. You can verify this by trying to SSH into the remote server as the root user.

Import a Single Account from Plesk 9+

  1. Click the SiteWorx > Import menu item.
  2. Click the Import from Plesk button.
  3. Click the Choose File button for a Local Backup File or the Use a file already on the system link for a Remote Backup File.
    1. Choose Local Backup File if you have a backup file saved on your computer’s hard drive.
    2. Choose Remote Backup File if you have a backup file saved on the server. You will need to type in the fully-qualified path to the file. For example, if you have a backup file named testaccount.tar.gz in /tmp/backups/, you would enter: /tmp/backups/testaccount.tar.gz
  4. Choose from the list of available resellers in the dropdown labeled Reseller.
  5. Enter the Client Email in the labeled text field.
  6. Choose from the list of available IP addresses in the dropdown labeled IP Address.
  7. Select a database server from the subsequent dropdown.
  8. Click the Continue button.
  9. If there is already an existing SiteWorx account with the same domain name you will be asked to confirm. Click the Import button to finish.

Backup / Restore
Nov 15, 2012, 6:42 pmBy: InterWorx
How to: Import Interworx Hosting Accounts
1 vote, 5.00 avg. rating (94% score)
(0) Comments

Leave a Reply
Surround code blocks with <pre>code</pre>

Your email address will not be published.

Related Posts

Comments

Broken Link