pg_dump -W -U <DB_USERNAME> <DB_NAME> -h <DB_HOST> -p <DB_PORT> --no-owner > <PATH_FOR_FILE>.sqlpg_dump -W -U <DB_USERNAME> <DB_NAME> -h <DB_HOST> -p <DB_PORT> --no-owner --inserts > <PATH_FOR_FILE>.sqlpg_dump -W -U <DB_USERNAME> <DB_NAME> -h <DB_HOST> -p <DB_PORT> --no-owner > <PATH_FOR_FILE>.sqlpg_dump -W -U <DB_USERNAME> <DB_NAME> -h <DB_HOST> -p <DB_PORT> --no-owner --inserts > <PATH_FOR_FILE>.sqlTo cordon a node,
kc cordon <node-name>To drain a node,
kc drain --force --ignore-daemonsets --delete-emptydir-data --grace-period=30 <node-name>For generating apache logs used https://github.com/mingrammer/flog
flog > apache.log
For generating nginx logs used https://github.com:kscarlett/nginx-log-generator
| # config file for ansible -- http://ansible.com/ | |
| # ============================================== | |
| # nearly all parameters can be overridden in ansible-playbook | |
| # or with command line flags. ansible will read ANSIBLE_CONFIG, | |
| # ansible.cfg in the current working directory, .ansible.cfg in | |
| # the home directory or /etc/ansible/ansible.cfg, whichever it | |
| # finds first | |
| [defaults] |