İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3498 Görünümler

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


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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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.

En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
May 24
5462
1
Mar 25
5927
9
Nis 25
63348
4
Nis 25
11055
1
Mar 25
2455