bin/ftbackup
changeset 126 15bc9b9d55e8
parent 125 2e00ff442e15
child 127 ed5b87c249a8
equal deleted inserted replaced
125:2e00ff442e15 126:15bc9b9d55e8
   306 else input="/dev/fd/0"
   306 else input="/dev/fd/0"
   307 fi
   307 fi
   308 
   308 
   309 while read; do
   309 while read; do
   310     test "\$REPLY" = "#-- START" \\
   310     test "\$REPLY" = "#-- START" \\
   311 	&& exec openssl enc -d -blowfish "\$@"
   311 	&& exec openssl enc -d -aes-128-cbc "\$@"
   312 done <\$input
   312 done <\$input
   313 exit
   313 exit
   314 #-- START
   314 #-- START
   315 __HEAD
   315 __HEAD
   316 
   316 
   317             update_devnames($o{dumpdates}, $dev->{rdev} => $dev->{dump})
   317             update_devnames($o{dumpdates}, $dev->{rdev} => $dev->{dump})
   318               if $o{dumpdates};
   318               if $o{dumpdates};
   319 
   319 
   320             exec
   320             exec
   321 "dump -$dev->{level} -L $label -f- -u -z$cf{COMPRESSION_LEVEL} -E $dev->{exclude}{inodes} $dev->{dump}"
   321 "dump -$dev->{level} -L $label -f- -u -z$cf{COMPRESSION_LEVEL} -E $dev->{exclude}{inodes} $dev->{dump}"
   322               . "| openssl enc -pass env:key -salt -blowfish";
   322               . "| openssl enc -pass env:key -salt -aes-128-cbc";
   323             die "Can't exec dumper\n";
   323             die "Can't exec dumper\n";
   324         };
   324         };
   325 
   325 
   326         if ($ftp) {
   326         if ($ftp) {
   327             verbose("sending dump to " . $ftp->pwd . "/$file.tmp-$^T\n");
   327             verbose("sending dump to " . $ftp->pwd . "/$file.tmp-$^T\n");
   818 
   818 
   819 =over
   819 =over
   820 
   820 
   821 =item KEY
   821 =item KEY
   822 
   822 
   823 The encryption key to use. (We use symmetric blowfish encryption currently.)
   823 The encryption key to use. (We use symmetric aes-128-cbc encryption currently.)
   824 
   824 
   825 =item FTP_HOST
   825 =item FTP_HOST
   826 
   826 
   827 The FTP host to send the backup to.
   827 The FTP host to send the backup to.
   828 
   828