Re: samba/tar backing up Windows data


Subject: Re: samba/tar backing up Windows data
From: David J. Weller-Fahy (lists@weller-fahy.com)
Date: Tue Apr 22 2003 - 16:07:34 AKDT


* Andy <lug@firman.us> [2003-04-22 15:20]:
> But now I am doing an install where we need to backup over
> 50GB of data. Doing a full copy everynight seems like overkill
> since we are dealing with a larger data volume.
>
> Is there any way I can use mtime or something to do incremental
> backups using a sambar/tar combination?
> ----------------------------------------------------------------------------------------
> #!/bin/bash
>
> mount -t smbfs -o username=administrator,password=admin //server/D$ /mnt
>
> ( tar cf - /mnt ) | ( cd /home/backup ; tar xpf - )
>
> umount /mnt
>
> echo This is to notify the backup is done tonight. | mail client@company.com
> ---------------------------------------------------------------------------------------------

Two things might work (untested)...

First, you might want to try the '--newer-mtime DATE' option (only store
files whose contents have changed after DATE). Do the full backup, then
each night after that do anything that's changed after the day before.

Another (might be a little more efficient) would be to use the '-d,
--diff, --compare' option (find differences between archive and file
system). That would require you to keep archives intact, instead of
piping then extracting them (which, in itself, might make restoring
easier). Just use the output of diff to create a list of the files to
backup.

Should work, but I haven't implemented anything like that, yet.

Regards,

-- 
David J. Weller-Fahy        | 'These are the questions that kept me out
largely at innocent dot com |  of the really *good* schools.'
www dot weller-fahy dot com |                  - One of The Group

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Apr 22 2003 - 16:07:40 AKDT