Help for this page

Select Code to Download


  1. or download this
    my @args = ("/bin/tar", "czvf",   $storageLocation.$archiveName,  $arc
    +hiveDir );
    system(@args) == 0 or die "system @args failed: $?";
    
  2. or download this
    tar -czvf - -g $BACKEDUP  --index-file $INDEXFILE --exclude-from $MYEX
    +CLUDES --totals /home/user1/ | ssh remote_machine "cat > /mnt/mount_p
    +oint/dir1/$FILENAME"
    
  3. or download this
    #!/usr/bin/perl 
    use strict;
    ...
    
    my @args = ("/bin/tar", "czv --exclude-from=$excludes -f",   $storageL
    +ocation.$archiveName,  $archiveDir );
    system(@args) == 0 or die "system @args failed: $?";
    
  4. or download this
    /bin/tar: Old option `b' requires an argument.
    Try `/bin/tar --help' or `/bin/tar --usage' for more information.
    ...
    --exclude-from=/home/user1/scripts/perl/backup/excluded_files.txt -f
    /mnt/mount_point/dir1/backup.tar.gz /home/user1/temp failed: 5
    12 at /tmp/filename.pl line 12.