We can offer more and better help if you provide us with a precise and detailed translation of "doesn't work."
The Monastery's crystal ball has been out of service for some time. It doesn't work.
Update and PS: I don't see a statement in the form which appears in your narrative, system ($CP, $srcfile, $dstfile); an instantiation of $CP, nor any reason to surround the CLI in Ln7 with backticks (`) since you've invoked system. Since you've created an ID/handle and account, you can edit your OP... but please include a note identifying what you've changed, added, deleted or otherwise amended.
In reply to Re: Dynamic Backup script
by ww
in thread Dynamic Backup script
by Ojas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |