Questo contenuto non è disponibile nella lingua selezionata.

15.4. Migrating an Application to Another Gear


There may be cases when an application must be migrated to another gear.

Procedure 15.1. To Migrate an Application to Another Gear:

  1. Create a snapshot of an existing application:
    $ rhc snapshot save App_Namerhc snapshot save App_Name
    
    Copy to Clipboard Toggle word wrap
  2. Verify that the App_Name.tar.gz file has been created in the working directory. After confirming the application snapshot is saved, delete the existing application:
    $ rhc app delete App_Namerhc app delete App_Name
    Copy to Clipboard Toggle word wrap
  3. Create a new application using the same cartridges, but with the correct gear size:
    $ rhc app create App_Name Cart_Name -g gear_sizerhc app create App_Name Cart_Name -g gear_sizerhc app create App_Name Cart_Name -g gear_sizerhc app create App_Name Cart_Name -g gear_sizerhc app create App_Name Cart_Name -g gear_sizerhc app create App_Name Cart_Name -g gear_size
    Copy to Clipboard Toggle word wrap
  4. Finally, restore the previously saved application snapshot to the newly created application. Be sure to specify the correct path to the saved application snapshot:
    $ rhc snapshot restore App_Name -f App_Name.tar.gzrhc snapshot restore App_Name -f App_Name.tar.gzrhc snapshot restore App_Name -f App_Name.tar.gzrhc snapshot restore App_Name -f App_Name.tar.gzrhc snapshot restore App_Name -f App_Name.tar.gz
    Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat