Here is a shell script, it assumes your directory list is in a file called dirlist which can be changed easily.
#!/bin/sh date=`date +%d%m%Y` for x in `cat dirlist` do y=`basename $x` tar zcvf $y-${date}.tar.gz $x done
The same basic structure can be rewritten in perl or you can go the whole Archive::Tar route and really make it complex:D
Good luck
In reply to Re: Simple Backup Script
by pzbagel
in thread Simple Backup Script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |