2

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.

  • 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
2

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

http://code.google.com/p/rsync-backup/

You can set a cronjob to execute the script

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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