[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq4r Backup
- Subject: Re: [cobalt-users] Raq4r Backup
- From: "Babu P. Yogarajah" <bpy@xxxxxxxxx>
- Date: Sun Feb 25 05:14:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
At 02:32 25/02/01 -0500, "Carrie Bartkowiak" <ravencarrie@xxxxxxxx> wrote:
>I wrote this little script that will tar up everything in /home/sites and
>drop it in an anonymous ftp directory called 'outgoing'.
>You can then have another machine pick it up with its own cron job or just
>leave it there as a backup.
>If you want to change what you're backing up or where you'd like it dropped,
>just make the appropriate changes:
>
>#!/usr/bin/perl
>$dir="/home";
>$outgoing="/home/sites/home/ftp/outgoing";
>$name="home.tar";
>my $messages;
>
>chdir $dir or die "Couldn't change directory.";
>$messages.=`tar -cvf home.tar sites`;
>$messages.=`mv home.tar $outgoing/$name`;
>chdir $outgoing or die "Couldn't change to outgoing.";
>$messages .= `chown httpd $name $outgoing`;
>chmod 777, qq($outgoing/home.tar);
>
>exit 0;
Hi Carrie,
You have made good contribution.
The script can be improved further.
You have mentioned that you are placing the home.tar
in your anonymous ftp directory.
My question is what happens if any anonymous user pulls out
home.tar from your anonymous ftp site?
Did you realize the danger, that anonymous user will
have all your clients cgi programs, personal and privacy data?
In other words, you server is left *open* to all.
Best regards,
Babu P. Yogarajah
<bpy@xxxxxxxxx>
___________________________________________________
99p
Domain Registration Scheme -> http://99p.org/