1. yang xiaoyong
  2. woocode

Source

woocode / sa-auto / sh / res.sh

1
2
3
4
5
6
. ./pg_env.sh

psql -t -U postgres cmsdb -A -q -c "delete from  node where subid='tools_ip'"
psql -t -U postgres cmsdb -A -q -c "delete from  node where subid='tools_ip_root'"
psql -t -U postgres cmsdb -A -q -c "copy node from '/apps/datbak/tools_ip.dump'"
psql -t -U postgres cmsdb -A -q -c "copy node from '/apps/datbak/tools_ip_root.dump'"