Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4747 Lượt xem

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


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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 24
6538
1
thg 3 25
6644
1
thg 7 25
1878
0
thg 6 25
3301
9
thg 7 25
65076