I'm trying to run a script to backup some directories. I haven't fleshed it out because I've been getting some stupid errors for a while. Here's the Script:
#!/usr/bin/perl
$DATA = "/root/. /usr/local/.";
$CONFIG="/etc/. /var/lib/.";
system `tar cvfz data_full.tgz $DATA`;
system `tar cvfz config_full.tgz" $CONFIG`;
Here's the messages I get when I run it:
tar: Removing leading `/' from member names
sh: -c: line 1: unexpected EOF while looking for matching `"'
sh: -c: line 2: syntax error: unexpected end of file
It runs file after the first error message, it even makes the data_full.tgz file, but then the next two messages pop up. Anyone have any idea what I'm doing wrong?
#!/usr/bin/perl
$DATA = "/root/. /usr/local/.";
$CONFIG="/etc/. /var/lib/.";
system `tar cvfz data_full.tgz $DATA`;
system `tar cvfz config_full.tgz" $CONFIG`;
Here's the messages I get when I run it:
tar: Removing leading `/' from member names
sh: -c: line 1: unexpected EOF while looking for matching `"'
sh: -c: line 2: syntax error: unexpected end of file
It runs file after the first error message, it even makes the data_full.tgz file, but then the next two messages pop up. Anyone have any idea what I'm doing wrong?