Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to automate backups on my webspace. My provider allows for cronjobs to be executed once a day. I have already implemented a cronjob that backs up my database with mySQLdumper, using a perl script. Now I want to use a script that backs up all my files in a specific folder (e.g. /folder/), zips them and moves them to /backups/

Is there a way to do so? If yes, could you recommend a good perl script template that lets me easily modify it so I can use it the way I want? Ideally, it would also have the feature to exclude certain file types, like jpg, gif and png.

share|improve this question
Does it have to be a perl script? A shell script calling gzip would work just fine too. – pritaeas Aug 22 '12 at 14:48

If you want to create backsups by simply copying files from one folder to another try rsyncbackup which is a perlscript that does easy backups with rsync


You can set a cronjob to execute the script

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.