Skip to Content
Menu
This question has been flagged
2 Replies
2970 Views

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


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

Avatar
Discard
Best Answer

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
Discard
Author

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.

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

Best Answer

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
Discard
Related Posts Replies Views Activity
2
May 24
4922
1
Mar 25
5615
9
Apr 25
62481
4
Apr 25
10562
1
Mar 25
2106