Help for this page

Select Code to Download


  1. or download this
    $ /usr/bin/tar -cz /opt/back | /usr/bin/ssh myname@remote.host.com 'dd
    + of=/opt/rback/back.tar.gz'
    
  2. or download this
    my $tar = "/usr/bin/tar";
    my $taropts = "-cz";
    ...
    my @args = ($tar, "$taropts", "$backupdir", "\|", $ssh, "$user\@$remot
    +ehost", "'dd of=$remotedir/back.tar.gz'");
    
    system(@args) == 0 or die "System @args failed: $!\n";