Re: backup system rsync - dump

2006-05-03 Thread Jack Stone

From: Philip Hallstrom [EMAIL PROTECTED]
To: dick hoogendijk [EMAIL PROTECTED]
CC: freebsd-questions freebsd-questions@freebsd.org
Subject: Re: backup system rsync - dump
Date: Tue, 2 May 2006 11:15:55 -0500 (CDT)

With the right settings of --backup --backup-dir you can easily create a 
week (or two or three or whatever) archive of the daily changed files. 
So, for example..


/backup/usr - contains identical copy
/backup/dailys/usr/Mon - contains files that changed on /usr on Monday.

Then just set things up to rotate/expire the old copies and you have an 
easy way to get files back you deleted that you didn't mean to.


I can post the whole script if you're interested...

-philip


Philip: I would be very interested in seeing your script if you would 
kindliy post it.


Thanks!
Jack

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup system rsync - dump

2006-05-03 Thread Philip Hallstrom
With the right settings of --backup --backup-dir you can easily create a 
week (or two or three or whatever) archive of the daily changed files. 
So, for example..


/backup/usr - contains identical copy
/backup/dailys/usr/Mon - contains files that changed on /usr on Monday.

Then just set things up to rotate/expire the old copies and you have an 
easy way to get files back you deleted that you didn't mean to.


I can post the whole script if you're interested...

-philip


Philip: I would be very interested in seeing your script if you would kindliy 
post it.


http://www.pjkh.com/~philip/backups.tgz

Pretty straight forward.  Set your directories in files.sh, create 
'server' directories in servers and define what files/directories to 
include/exclude.  Then run the script...


-philip
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


backup system rsync - dump

2006-05-02 Thread dick hoogendijk
I have two disks; one is the fbsd system drive, the other is for backup
purposes.

I'm in doubt about what to use: dump or rsync

I guess I can do something like:
mount /dev/ad1s3a /backup/root
mount /dev/ad1s3d /backup/var
mount /dev/ad1s3f /backup/usr
/usr/local/bin/rsync -avHxS --delete /usr /backup/usr
for /usr / and var

OR

#!/bin/sh
newfs /dev/ad0s3a
newfs /dev/ad0s3d
newfs /dev/ad0s3f
mount /dev/ad0s3a /backup/root
mount /dev/ad0s3d /backup/var
mount /dev/ad0s3f /backup/usr
(/sbin/dump -L -0f - /)|(cd /backup/root ; /sbin/restore -rf -)
(/sbin/dump -L -0f - /var)|(cd /backup/var ; /sbin/restore -rf -)
(/sbin/dump -L -0f - /usr)|(cd /backup/usr ; /sbin/restore -rf -)
umount /backup/root
umount /backup/var
umount /backup/usr
tunefs -n enable /dev/ad0s3d
tunefs -n enable /dev/ad0s3f

This gives me a perfect copy, BUT there is a risk if something goes
wrong when I have newfs'd the backup drive.

Any advice?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup system rsync - dump

2006-05-02 Thread Jerry McAllister
 
 I have two disks; one is the fbsd system drive, the other is for backup
 purposes.
 
 I'm in doubt about what to use: dump or rsync

I use dump/restore, but do the command slightly differently.
Since dump works on a file system I cd to the destination mount point
and work from there and I don't have to put the cd in the middle.

  cd /backup/root
  dump -0aLf - / | restore -rf -

works fine.
You don't have to newfs each time, but you do need to do
something to clean out the destination file system
so I guess newfs works as well as rm -rf.

jerry

 
 I guess I can do something like:
 mount /dev/ad1s3a /backup/root
 mount /dev/ad1s3d /backup/var
 mount /dev/ad1s3f /backup/usr
 /usr/local/bin/rsync -avHxS --delete /usr /backup/usr
 for /usr / and var
 
 OR
 
 #!/bin/sh
 newfs /dev/ad0s3a
 newfs /dev/ad0s3d
 newfs /dev/ad0s3f
 mount /dev/ad0s3a /backup/root
 mount /dev/ad0s3d /backup/var
 mount /dev/ad0s3f /backup/usr
 (/sbin/dump -L -0f - /)|(cd /backup/root ; /sbin/restore -rf -)
 (/sbin/dump -L -0f - /var)|(cd /backup/var ; /sbin/restore -rf -)
 (/sbin/dump -L -0f - /usr)|(cd /backup/usr ; /sbin/restore -rf -)
 umount /backup/root
 umount /backup/var
 umount /backup/usr
 tunefs -n enable /dev/ad0s3d
 tunefs -n enable /dev/ad0s3f
 
 This gives me a perfect copy, BUT there is a risk if something goes
 wrong when I have newfs'd the backup drive.
 
 Any advice?
 
 -- 
 dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
 ++ Running FreeBSD 6.1 ++ The Power to Serve
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup system rsync - dump

2006-05-02 Thread Iantcho Vassilev

I am using rsync for syncing fwo hard disk(with all the files or make it hot
backup) and must say rsync is perfect..
It will save you a lot of time.


On 5/2/06, dick hoogendijk [EMAIL PROTECTED] wrote:


I have two disks; one is the fbsd system drive, the other is for backup
purposes.

I'm in doubt about what to use: dump or rsync

I guess I can do something like:
mount /dev/ad1s3a /backup/root
mount /dev/ad1s3d /backup/var
mount /dev/ad1s3f /backup/usr
/usr/local/bin/rsync -avHxS --delete /usr /backup/usr
for /usr / and var

OR

#!/bin/sh
newfs /dev/ad0s3a
newfs /dev/ad0s3d
newfs /dev/ad0s3f
mount /dev/ad0s3a /backup/root
mount /dev/ad0s3d /backup/var
mount /dev/ad0s3f /backup/usr
(/sbin/dump -L -0f - /)|(cd /backup/root ; /sbin/restore -rf -)
(/sbin/dump -L -0f - /var)|(cd /backup/var ; /sbin/restore -rf -)
(/sbin/dump -L -0f - /usr)|(cd /backup/usr ; /sbin/restore -rf -)
umount /backup/root
umount /backup/var
umount /backup/usr
tunefs -n enable /dev/ad0s3d
tunefs -n enable /dev/ad0s3f

This gives me a perfect copy, BUT there is a risk if something goes
wrong when I have newfs'd the backup drive.

Any advice?

--
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup system rsync - dump

2006-05-02 Thread Philip Hallstrom

I have two disks; one is the fbsd system drive, the other is for backup
purposes.

I'm in doubt about what to use: dump or rsync

I guess I can do something like:
mount /dev/ad1s3a /backup/root
mount /dev/ad1s3d /backup/var
mount /dev/ad1s3f /backup/usr
/usr/local/bin/rsync -avHxS --delete /usr /backup/usr
for /usr / and var


If you do go with rsync, watch the -delete.  If for some reason you blow 
away /usr/local/etc and then run your backup you'll blow away your backed 
up /usr/local/etc as well.  Probably not what you want :)


With the right settings of --backup --backup-dir you can easily create a 
week (or two or three or whatever) archive of the daily changed files. 
So, for example..


/backup/usr - contains identical copy
/backup/dailys/usr/Mon - contains files that changed on /usr on Monday.

Then just set things up to rotate/expire the old copies and you have an 
easy way to get files back you deleted that you didn't mean to.


I can post the whole script if you're interested...

-philip
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup system rsync - dump

2006-05-02 Thread Howard Jones

Philip Hallstrom wrote:

I have two disks; one is the fbsd system drive, the other is for backup
purposes.

I'm in doubt about what to use: dump or rsync

I guess I can do something like:
mount /dev/ad1s3a /backup/root
mount /dev/ad1s3d /backup/var
mount /dev/ad1s3f /backup/usr
/usr/local/bin/rsync -avHxS --delete /usr /backup/usr
for /usr / and var


If you do go with rsync, watch the -delete.  If for some reason you 
blow away /usr/local/etc and then run your backup you'll blow away 
your backed up /usr/local/etc as well.  Probably not what you want :)


With the right settings of --backup --backup-dir you can easily create 
a week (or two or three or whatever) archive of the daily changed 
files. So, for example..


/backup/usr - contains identical copy
/backup/dailys/usr/Mon - contains files that changed on /usr on Monday.

Then just set things up to rotate/expire the old copies and you have 
an easy way to get files back you deleted that you didn't mean to.


I can post the whole script if you're interested...
If you'd like to go down that route (of incremental backups), then 
consider rdiff-backup, which makes a 'live backup' in the same way that 
rsync does but also saves the rsync 'transaction log' so you can produce 
a previous day's image easily, and store the differences compactly - the 
saving on the network in rsync becomes the saving in disk space for the 
incremental backups.


http://www.nongnu.org/rdiff-backup/
http://www.howtoforge.com/linux_rdiff_backup

I've been using this for a few dozen machines with no problems so far.

Cheers,

Howie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]