Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3044 Vizualizări

Is there a way to get odoo.sh backup via terminal?


I want to get my odoo.sh backup on another server

Imagine profil
Abandonează
Cel mai bun răspuns

Certainly! Here are the detailed steps to get an Odoo.sh backup via terminal:

  1. Open Odoo.sh Shell:
    • Access the shell environment of your Odoo.sh instance. This usually involves logging into your Odoo.sh dashboard and launching the shell from there.

  2. Navigate to the backup.daily Directory:
    • Once you are in the shell, change the directory to backup.daily where the backup files are stored.
    cd backup.daily
    
  3. Copy the SQL Backup File to Your Server:
    • List the files in the backup.daily directory to identify the SQL backup file you want to copy.
    ls
    
    • Use the scp (secure copy) command to transfer the identified SQL file to your server. Replace with the actual name of the SQL backup file, root with your server's username, ip with your server's IP address, and /path with the destination path on your server.
    scp  root@ip:/path
    
  4. Navigate to the data Directory:
    • Change the directory to data where the filestore directory is located.
    cd data
    
  5. Create a Zip File of the Filestore Directory:
    • Compress the filestore directory into a zip file. This will make it easier to transfer the entire directory.
    zip -r filestore.zip filestore
    
  6. Copy the Filestore Zip to Your Server:
    • Use the scp command again to transfer the filestore.zip file to your server. Replace root, ip, and /path with the appropriate values as before.
    scp filestore.zip root@ip:/path
    

By following these steps, you will have successfully transferred both the SQL backup file and the filestore directory to your server, ensuring you have a complete backup of your Odoo.sh instance.

Thanks & Regards,


CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209

Email: info@candidroot.com

Imagine profil
Abandonează
Autor

thank you, but what if I want specific backup(old one) from odoo.sh

you restore live old backup into staging and transfer backup from staging shell.

Cel mai bun răspuns

Hi,

Not sure if this will work, but you can try, if you open the Editor in odoo sh, you can see a folder name backup.daily which contains some back up file. get the path to this folder and from the odoo sh shell, using the scp command you can push this to a different server.

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mai 24
4989
1
mar. 25
5642
9
apr. 25
62588
4
apr. 25
10629
1
mar. 25
2131