[wplug] Backup tool?

Chris Teodorski chris at teodorski.com
Wed Nov 7 20:33:49 EST 2007


On Nov 7, 2007 4:42 PM, n schembr <nschembr at yahoo.com> wrote:

> I use the rsync with the backup option. Old files are stored by date and
> hour.
>
>    #   $base_dir = "mail1.example.com:/"; #remote
>        $base_dir = "/";  # local
>
>        $rsync_dir = "/media/mail1";
>        $old_dir =   "/media/mail1/backup/";
>
>        $date= `date +%Y_%m_%d/%H`;
>        chop $date;
>
>        $exclude = "--exclude=media/ --exclude=vmware/  --exclude=backup/
> --exclude=var/ --exclude=sys/ --exclude=proc/ --exclude mnt/ ";
>        $cmd = "rsync   --delete --delete-after  -aHv $exclude --backup
> --backup-dir=$old_dir$date/ $base_dir $rsync_dir ";
>
>
>
> Nicholas A. Schembri
> State College PA USA
>
>
>
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>



Here is a great article by our own MarkD.   It's a pretty good intro to
rsync backups.

http://www.borkware.com/rants/rsync-backups/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20071107/09251efa/attachment.html


More information about the wplug mailing list