Re: Backing up freebsd to 1 file?

2010-04-19 Thread Chris Rees
On 18 April 2010 15:56, J.D. Bronson wrote: >  be created by the time your system boots on. >> >> Nice answer by Sergio, but I personally would use the j option with tar >> to compress to bzip2; >> >> 3) tar --one-file-system -cvjf /mnt/backup.tbz ./ var usr home >> >> Though I prefer personally t

Re: Backing up freebsd to 1 file?

2010-04-19 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/04/2010 16:16:21, Randal L. Schwartz wrote: > Nope. "shutdown" doesn't appear in /etc/rc.d/zfs keywords, so it won't > get "stop" during normal shutdown. That must happen later. Dammit. I know this really -- but for some reason i had it in my

Re: Backing up freebsd to 1 file?

2010-04-19 Thread Randal L. Schwartz
> "Sergio" == Sergio de Almeida Lenzi writes: >> It kills everything ungracefully and will screw up anything that needs >> to sync state to disk -- like mysql. >> >> Just use shutdown(8): it's what it's there for. >> >> # shutdown now "Going single user to make backups" >> >> Cheers, >> >

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/04/2010 06:52:29, Sergio de Almeida Lenzi wrote: > but I use zfs and I think that during shutdown, /etc/rc.d/zfs is > called stop > so it unmounts all zfs partition... (I did not tested...)... > so It must be called /etc/rc.d/zfs start again.

RE: Backing up freebsd to 1 file?

2010-04-18 Thread Terrence Koeman
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of J.D. Bronson > Sent: Sunday, April 18, 2010 3:23 PM > To: freebsd-questions@freebsd.org > Subject: Backing up freebsd to 1 file? > > I ha

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Sergio de Almeida Lenzi
> It kills everything ungracefully and will screw up anything that needs > to sync state to disk -- like mysql. > > Just use shutdown(8): it's what it's there for. > > # shutdown now "Going single user to make backups" > > Cheers, > > Matthew Ok you are right... for me worked

Re: Backing up freebsd to 1 file?

2010-04-18 Thread J.D. Bronson
On 4/18/10 10:39 AM, Warren Block wrote: If you don't have any other drives, where will the backup file be stored so it survives a system failure or reinstall? Thoughts on this would be appreciated... dump/restore is the standard safe way; you can send it over ssh to back up to a file on anot

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Warren Block
On Sun, 18 Apr 2010, J.D. Bronson wrote: I have a freebsd 8.0 install and was wondering if it is possible to tar up the entire install...for backup purposes. # cd / # tar -cvf backup.tar {list of directories} then I can ftp the tar file out to another machine. This works in theory, but if I

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/04/2010 15:19:32, Jan Hlodan wrote: > you can migrate to zfs and then create snapshot of whole disk, import > this snapshot (e.g. via ssh) and then restore it back. You can create snapshots with UFS too. It's a good way of getting a reasonably

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/04/2010 15:37:03, Sergio de Almeida Lenzi wrote: > 2) init 1 (this closes all applications and drop into single user) It kills everything ungracefully and will screw up anything that needs to sync state to disk -- like mysql. Just use shutdown

Re: Backing up freebsd to 1 file?

2010-04-18 Thread J.D. Bronson
be created by the time your system boots on. Nice answer by Sergio, but I personally would use the j option with tar to compress to bzip2; 3) tar --one-file-system -cvjf /mnt/backup.tbz ./ var usr home Though I prefer personally to use dump/restore because: - If you're on UFS, you don't have

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Chris Rees
On 18 April 2010 15:37, Sergio de Almeida Lenzi wrote: > I am very happy with the folowing > > > Supose that you have mount ANOTHER device on /mnt > > 1) mount /dev/ /mnt > 2) init 1  (this closes all applications and drop into single user) > 3) tar --one-file-system -cvzf /mnt/backup.

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Jan Hlodan
you can migrate to zfs and then create snapshot of whole disk, import this snapshot (e.g. via ssh) and then restore it back. Good luck. -- Jan Hlodan On Sun, Apr 18, 2010 at 3:23 PM, J.D. Bronson wrote: > I have a freebsd 8.0 install and was wondering if it is possible to tar up > the entire i

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Sergio de Almeida Lenzi
I am very happy with the folowing Supose that you have mount ANOTHER device on /mnt 1) mount /dev/ /mnt 2) init 1 (this closes all applications and drop into single user) 3) tar --one-file-system -cvzf /mnt/backup.tar.gz ./ var usr home 4) umount /mnt 5) exit (reboot from single us

Re: Backing up freebsd to 1 file?

2010-04-18 Thread Polytropon
On Sun, 18 Apr 2010 08:23:12 -0500, "J.D. Bronson" wrote: > I have a freebsd 8.0 install and was wondering if it is possible to tar > up the entire install...for backup purposes. > > # cd / > # tar -cvf backup.tar {list of directories} > > then I can ftp the tar file out to another machine. >

Backing up freebsd to 1 file?

2010-04-18 Thread J.D. Bronson
I have a freebsd 8.0 install and was wondering if it is possible to tar up the entire install...for backup purposes. # cd / # tar -cvf backup.tar {list of directories} then I can ftp the tar file out to another machine. This works in theory, but if I need to do a restore tar complains on 'tar