CMDCommand · run as root on the server · move family
urbestack-move-copy
Latest change (release 0.2.33): The command rejects names this server cannot assign before copying.
Usage
# urbestack-move-copy (--user NAME[=NAME_HERE] [--user NAME[=NAME_HERE] ...] | --all) [--profile [--trust-files | --leave-files] [--setting KEY ... | --no-settings]] [--job ID]Description
From the command's --help outputCopies accounts to the destination server while the source server continues serving them. Use --user for each account or --all for every account that has yet to move. A reseller's customers come with the reseller, who is copied first. UrbeStack checks that the account names and domains are available and that the destination meets each account's requirements. If anything needs to be installed, it stops and lists the installation commands in the order to run them. Use --job to supply an existing job ID. By default, the command creates a job. On an UrbeStack source, the account's DNS zone TTLs drop to five minutes. The destination imports the account records, including secrets, and installs the existing certificates as they are. The copy stays suspended until cutover, so cron jobs keep running only on the source and the source continues handling mail. The home directory, including sites and mail, is copied by rsync over SSH. Each database is dumped on the source and loaded on the destination. Run the copy again as often as needed. Rsync transfers only changed files and removes files deleted on the source. The copy also removes domains, databases, FTP accounts and keys removed from the source since the last copy. For zones whose nameservers are elsewhere, the report lists the DNS records to change by hand at cutover. If the copy fails, the reduced TTLs are the only change on the source. Use --user NAME=NAME_HERE to choose an available username on the destination when the source username is already taken, reserved or invalid there. The imported records and home directory use the new name, and a reseller keeps their customers under that name. UrbeStack rewrites full paths to the old home directory where it can and counts the files it leaves as they are, as it does when importing from another control panel. Use the source name for later copies and at cutover. UrbeStack reuses the destination name and refuses a different one. Use --profile to import an UrbeStack source server's settings and packages before copying accounts. The command refuses --profile for a source that runs another control panel. Use --profile alone to set up a server without copying accounts. urbestack-move-profile-preview shows what would change. By default, every setting comes across. Repeat --setting KEY to select individual settings or use --no-settings to import only packages. Either way, all packages are included. If the profile contains files that root runs or renders, UrbeStack requires --leave-files or --trust-files. --leave-files imports settings and packages and lists the files set aside. The report includes the rsync command to fetch them into /root/urbestack-review and the command to import them after review. The Move section of the web interface uses this behavior. Use --trust-files at the shell after reviewing the files to import the overrides, hooks and registered files along with the rest of the profile. For a source that runs another control panel, urbestack-move-test identifies the panel. The source packs the account without its home directory in /home/urbestack-move. The destination fetches the archive and removes it from the source, then copies the home directory directly by rsync, placing the account's own mail in the corresponding mailbox. The rest follows the same import process and report as urbestack-foreign-import. Later copies update the home directory, mail, mailboxes, databases, certificates and cron jobs. The account, its domains and its DNS records come from the first copy.Usage: urbestack-move-copy (--user NAME[=NAME_HERE] [--user NAME[=NAME_HERE] ...] | --all) [--profile [--trust-files | --leave-files] [--setting KEY ... | --no-settings]] [--job ID] Copies accounts to the destination server while the source server continues serving them. Use --user for each account or --all for every account that has yet to move. A reseller's customers come with the reseller, who is copied first. UrbeStack checks that the account names and domains are available and that the destination meets each account's requirements. If anything needs to be installed, it stops and lists the installation commands in the order to run them. Use --job to supply an existing job ID. By default, the command creates a job. On an UrbeStack source, the account's DNS zone TTLs drop to five minutes. The destination imports the account records, including secrets, and installs the existing certificates as they are. The copy stays suspended until cutover, so cron jobs keep running only on the source and the source continues handling mail. The home directory, including sites and mail, is copied by rsync over SSH. Each database is dumped on the source and loaded on the destination. Run the copy again as often as needed. Rsync transfers only changed files and removes files deleted on the source. The copy also removes domains, databases, FTP accounts and keys removed from the source since the last copy. For zones whose nameservers are elsewhere, the report lists the DNS records to change by hand at cutover. If the copy fails, the reduced TTLs are the only change on the source. Use --user NAME=NAME_HERE to choose an available username on the destination when the source username is already taken, reserved or invalid there. The imported records and home directory use the new name, and a reseller keeps their customers under that name. UrbeStack rewrites full paths to the old home directory where it can and counts the files it leaves as they are, as it does when importing from another control panel. Use the source name for later copies and at cutover. UrbeStack reuses the destination name and refuses a different one. Use --profile to import an UrbeStack source server's settings and packages before copying accounts. The command refuses --profile for a source that runs another control panel. Use --profile alone to set up a server without copying accounts. urbestack-move-profile-preview shows what would change. By default, every setting comes across. Repeat --setting KEY to select individual settings or use --no-settings to import only packages. Either way, all packages are included. If the profile contains files that root runs or renders, UrbeStack requires --leave-files or --trust-files. --leave-files imports settings and packages and lists the files set aside. The report includes the rsync command to fetch them into /root/urbestack-review and the command to import them after review. The Move section of the web interface uses this behavior. Use --trust-files at the shell after reviewing the files to import the overrides, hooks and registered files along with the rest of the profile. For a source that runs another control panel, urbestack-move-test identifies the panel. The source packs the account without its home directory in /home/urbestack-move. The destination fetches the archive and removes it from the source, then copies the home directory directly by rsync, placing the account's own mail in the corresponding mailbox. The rest follows the same import process and report as urbestack-foreign-import. Later copies update the home directory, mail, mailboxes, databases, certificates and cron jobs. The account, its domains and its DNS records come from the first copy.
Options
Find other commands that accept these optionsChange log
1 change since publication, newest first0.2.3325 Nov 2026The command rejects names this server cannot assign before copying.The command reports all affected accounts without a replacement name supplied as --user NAME=NAME_HERE before doing any work on the source server.
0.1.03 Oct 2026First published.
Generated from release 0.2.35 (current) · urbestack-move-copy --help outputThis entry last changed in release 0.2.33 on 25 Nov 2026.
urbestack.com/docs/commands/urbestack-move-copy/