just replace the $ variables with values appropriate to your machine.
make sure you also run
Code:
chmod +x perlscript.pl
to make the script executable.
If you are running this automatically from a script you might want to omit the "v" flag as this causes a lot of output. There is also a huge performance hit for printing what it is doing, which when you do you initial backup will make a difference.