I am transferring Asset Server from my laptop to a dedicated server. How do I move or transfer the projects (including their commit history) from on computer to another?
I emailed Unity support and got an awesome response with the full answer to my question. Hopefully this helps anyone with the same question I had. I haven’t tried it yet, so please let me know if this works for you.
From Unity:
You can create a backup of the AssetServer and restore it on another location:
Backing up
We have provided a command line tool to back up an asset server. The tool should be run from an administrator account on the machine running the asset server. Replace BACKUP_LOCATION with the path name you want the backup tool to place the backups:
Mac OS X
sudo /Library/UnityAssetServer/bin/as_backup BACKUP_LOCATION
Linux
sudo /opt/unity_asset_server/bin/as_backup BACKUP_LOCATION
Windows
“\Unity\AssetServer\bin\as_backup.cmd” BACKUP_LOCATION
as_backup will create a directory at BACKUP_LOCATION containing one or more files per project plus files containing information about each project and a backup of all users and their passwords.
Restoring a Backup
To restore an Asset Server backup produced with as_backup, first perform a clean installation of the Asset Server without any projects created. (The restore procedure will refuse to overwrite already existing projects with the same name.)
Then run the provided backup restoration tool, as_restore pointing it to the location of a backup created with as_backup:
Mac OS X
sudo /Library/UnityAssetServer/bin/as_restore BACKUP_LOCATION
Linux
sudo /opt/unity_asset_server/bin/as_restore BACKUP_LOCATION
Windows
“\Unity\AssetServer\bin\as_restore.cmd” BACKUP_LOCATION
Note that you can also use as_backup and as_restore to move an asset server installation from one machine to another by performing the backup on the source machine, moving the backup directory to the destination machine (or mount it through a network file share,) and then running as_restore to insert the data into the newly installed Asset Server instance. This will even work when the source and destination Asset Servers have different versions or are running on different operating systems.
You can create a backup of the AssetServer and restore it on another location:
Backing up
We have provided a command line tool to back up an asset server. The tool should be run from an administrator account on the machine running the asset server. Replace BACKUP_LOCATION with the path name you want the backup tool to place the backups:
Mac OS X
sudo /Library/UnityAssetServer/bin/as_backup BACKUP_LOCATION
Linux
sudo /opt/unity_asset_server/bin/as_backup BACKUP_LOCATION
Windows
“\Unity\AssetServer\bin\as_backup.cmd” BACKUP_LOCATION
as_backup will create a directory at BACKUP_LOCATION containing one or more files per project plus files containing information about each project and a backup of all users and their passwords.
Restoring a Backup
To restore an Asset Server backup produced with as_backup, first perform a clean installation of the Asset Server without any projects created. (The restore procedure will refuse to overwrite already existing projects with the same name.)
Then run the provided backup restoration tool, as_restore pointing it to the location of a backup created with as_backup:
Mac OS X
sudo /Library/UnityAssetServer/bin/as_restore BACKUP_LOCATION
Linux
sudo /opt/unity_asset_server/bin/as_restore BACKUP_LOCATION
Windows
“\Unity\AssetServer\bin\as_restore.cmd” BACKUP_LOCATION
Note that you can also use as_backup and as_restore to move an asset server installation from one machine to another by performing the backup on the source machine, moving the backup directory to the destination machine (or mount it through a network file share,) and then running as_restore to insert the data into the newly installed Asset Server instance. This will even work when the source and destination Asset Servers have different versions or are running on different operating systems.