Mercurial > backup
view cd-burn.pl @ 22:d3b029607539
resurrected old backup script from 6.034.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 10 Jun 2013 08:48:20 -0400 |
parents | cfb8a8c044b4 |
children | 75db8d48c313 |
line wrap: on
line source
1 #!/bin/perl3 use File::Basename;5 $tmp_iso="/home/r/tmp/image.iso";7 @graft_points = ("-graft-points");9 for $graft_point(@ARGV){10 push(@graft_points, '"'. basename($graft_point) .'"' . "="11 . '"'. $graft_point . '"');12 }14 @mkisofs_args = ("-iso-level", "4", "-r", "-quiet");16 @mkisofs_args = (@mkisofs_args, @graft_points);19 # get size of stuff20 $size = `mkisofs -print-size @mkisofs_args 2>/dev/null`;21 chomp($size);23 @burn_command = ("cdrecord", "gracetime=3", "-v",24 "tsize=".$size."s", "-data", "-");26 @aes_loop_command = ("aespipe", "-P", "/etc/cd-key", "-e", "aes256");29 $final_command = "mkisofs @mkisofs_args | @aes_loop_command | @burn_command";31 print "$final_command\n";32 system($final_command);