Project

General

Profile

« Previous | Next » 

Revision 8942

Added by Jing Tao about 10 years ago

Keep /var/lib/postgresql/8.4/main directory.

View differences:

restore-dumped-data-to-pg9.3.sh
60 60
	echo "back up the old db data at $OLD_DB_DATA_DIR"
61 61
        su - $POSTGRES_USER -c "tar -zcvf $DB_BASE/$OLD_DB_BACKUP_FILE $OLD_DB_DATA_DIR"
62 62
	echo "delete the data directory - $OLD_DB_DATA_DIR"
63
	rm -rf $OLD_DB_DATA_DIR
63
	rm -rf $OLD_DB_DATA_DIR/main/*
64 64
fi
65 65

  
66 66
echo "remove postgresql 8.4 and 9.1"

Also available in: Unified diff