Postgre database removal to other pc

hi
I have a few question I hope you guys can answer:
1: I wish to move database to another pc. How can i transfer data otherwise that using Import hand history feature? Can I copy the postgres folder from c-drive to new pc, and then expect database to run on new pc?
2: is there a way to automatically create backup of postgres sql database using a script, and how do I do it?
I have a few question I hope you guys can answer:
1: I wish to move database to another pc. How can i transfer data otherwise that using Import hand history feature? Can I copy the postgres folder from c-drive to new pc, and then expect database to run on new pc?
2: is there a way to automatically create backup of postgres sql database using a script, and how do I do it?