Clean up code a bit
Update tests for previous changes
Correct a mistake in test script
Use current user's name and host
Rebuild test field for each test run
Bugfix, 'logfile' is not available here
Prevent unnecessary recursive nesting
Make sure deploy destination is there
Make sure we have 'USER' variable
Use variable 'HOST' instead of 'HOSTNAME'
Use more meaningful name 'BAKPATH'
Use 'LOGFILE' for deploy log
Remove '-p' option
Remove '-d' option
Add function show_help
Move the main logic to the end of the script
Give move information when things go wrong
Bugfix if the destination of __KEEP is a file
Make sure 'dodepoly' only recieve directory
Improve comments a bit