dico
09-18-2001, 10:36 PM
Hi there,
I am relatively new to all this, so please excuse my ignorance.
I am trying to implement the backup system that people have been discussing in this forum.
Here is what I have (a limited backup):
#!/usr/bin/perl
#FTP Server Info HERE
$ftps = "mp.ip.address.here";
$ftpu = "username";
$ftpp = "password";
$serv = "anythinghere";
system("/bin/tar cfp - /home/sites/site60 | gzip |
/usr/local/bin/ftpbackup -h $ftps -u
$ftpu -p $ftpp -b $serv-home.tar.gz");
When I run the above by typing . backup.pl I get the following:
[root ftpbackup-2.1]# . backup.pl
sh: =: command not found
sh: =: command not found
sh: =: command not found
sh: =: command not found
sh: syntax error near unexpected token `$serv-home.tar.gz")'
sh: backup.pl: line 11: `$ftpu -p $ftpp -b $serv-home.tar.gz");'
[root ftpbackup-2.1]#
I'd appreciate any help.
Thanks in advance,
-dr
I am relatively new to all this, so please excuse my ignorance.
I am trying to implement the backup system that people have been discussing in this forum.
Here is what I have (a limited backup):
#!/usr/bin/perl
#FTP Server Info HERE
$ftps = "mp.ip.address.here";
$ftpu = "username";
$ftpp = "password";
$serv = "anythinghere";
system("/bin/tar cfp - /home/sites/site60 | gzip |
/usr/local/bin/ftpbackup -h $ftps -u
$ftpu -p $ftpp -b $serv-home.tar.gz");
When I run the above by typing . backup.pl I get the following:
[root ftpbackup-2.1]# . backup.pl
sh: =: command not found
sh: =: command not found
sh: =: command not found
sh: =: command not found
sh: syntax error near unexpected token `$serv-home.tar.gz")'
sh: backup.pl: line 11: `$ftpu -p $ftpp -b $serv-home.tar.gz");'
[root ftpbackup-2.1]#
I'd appreciate any help.
Thanks in advance,
-dr
