WINDOW system

1. Run the python program in the background

    1) Start the process: start/b python filename.py

    2) View the process: tasklist

    3) Kill the process: taskkill /f /pid number of processes

2. Backup the postgresql database

    1) Enter the bin file of postgresql : for example E:\python\postgresql9.5\bin

    2) Command: pg_dump -U database username database name to be backed up > file name to be generated.sql For example: pg_dump -U odoo odoo10 > odoo10.sql

    3) Password: the password of the database

    4) An odoo10.sql file will be generated under the bin file

3. Restore the postgresql database

    1) Enter the bin file of postgresql : for example E:\python\postgresql9.5\bin

    2) Command: psql backup database name data user name < backup file For example: psql odoo10 odoo < odoo10.sql

    3) Password: the password of the database

4. File operations

    1) Delete the folder: rd /s /q folder name

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324730508&siteId=291194637