bak - push all changed files to server
+See L<http://blog.rot13.org/bak-git> for more information
+
=cut
use warnings;
my $shell_client = <<__SHELL_CLIENT__;
#!/bin/sh
-echo \$USER/\$SUDO_USER `hostname -s` `pwd` \$* | nc $server_ip 9001
+echo \$USER/\$SUDO_USER `hostname` `pwd` \$* | nc $server_ip 9001
__SHELL_CLIENT__
chdir $dir;
chomp($line);
warn "<<< $line\n";
my ($user,$hostname,$pwd,$command,$rel_path,$message) = split(/\s+/,$line,6);
+ $hostname =~ s/\..+$//;
my $on_host = '';
if ( $rel_path =~ s/^([^:]+):(.+)$/$2/ ) {