Hi , I have a quick question on Rsync.
I am doing a rsync to remote server using code below : - use File::Rsync; my $source= "/backup/$TodaysDate"; my $ssh_server = '192.168.0.xxx'; my $destination = '/backup/data/'; my $rsync_obj = File::Rsync->new ( { 'rsync-path' => $rsync, 'archive' => 1, 'recursive' => 1, } ); my $dest_dir = $ssh_server.':'.$destination; print "$dest_dir"; my $zmrsyncstat = $rsync_obj->exec ( { src => "$source", dest => "$dest_dir" } ); if ( $zmremrsyncstat ) { print OUTPUTFILE "Remote Rsync: Successfully created $destination\n"; } else { print OUTPUTFILE " $! : Remote Rsync: Some Problem Occurred. Please check.\n"; } This works manually if I run this script however under crontab it doesnot. Any clue what could be the issue ? Thanks and Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/