Backup-EZ
view release on metacpan or search on metacpan
bin/ezbackup view on Meta::CPAN
}
my $cron_file = "$cron_dir/ezbackup";
print "installing $cron_file\n";
open my $fh, ">$cron_file" or die "failed to open $cron_file: $!";
print $fh "#!/bin/sh\n\n";
print $fh "nice $ez_path\n";
close $fh;
my_system("chmod 755 $cron_file");
}
sub install_cfg {
my $etc_dir = "/etc/ezbackup";
my $dist_dir = File::ShareDir::dist_dir("Backup-EZ");
my_system("mkdir -p $etc_dir");
my_system("cp $dist_dir/ezbackup.conf $etc_dir");
my_system("cp $dist_dir/ezbackup_exclude.rsync $etc_dir");
my_system("chmod 644 $etc_dir/*");
}
sub my_system {
my $cmd = shift;
print "$cmd\n";
system($cmd);
die if $?;
}
sub main {
( run in 0.269 second using v1.01-cache-2.11-cpan-496ff517765 )