fix amazonbackup script, trap on epipe exception for db backup