Multiple storage accounts as a proxy for syncing over the local network

That explains why the existing items disappear instead of transferring to the new account. I guess I would need to modify it so that when the account changes it overwrites everything with the state of the local version instead of trying to merge.