dump question
Hi, Need some reassurance on this: # dump -h0 -0f - /usr | gzip /filelocation/filename.dump.gz Will this produce a good dumpfile of /usr ? I mean, witghout gzip it would have probably be something like dump -h0 -0f /filelocation/filename.dump /tmp am I right? Because I am a little short on space I want to use gzip though. Thanks. -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dump question
On Thu, 7 Apr 2005 10:47:59 +0200, dick hoogendijk wrote: # dump -h0 -0f - /usr | gzip /filelocation/filename.dump.gz Will this produce a good dumpfile of /usr ? I mean, witghout gzip it would have probably be something like dump -h0 -0f /filelocation/filename.dump /tmp am I right? Because I am a little short on space I want to use gzip though. Thanks. This should be OK. You can even interactively (!) restore from that file using a command like: gunzip /filelocation/filename.dump.gz -c |restore -if - For a full restore of all files in the dumpfile use: cd restoredir gunzip /filelocation/filename.dump.gz -c |restore -rf - Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dump question
Using dump to make a full level 0 backup of my system to another harddisk in case of a crash. If needed I want to restore the dumps and have a fully working system back. Question: do I have to make the dumps *single* mode or can I just do it from a running system? If single, do I have to follow the next steps: ?? # boot -s # fsck -p # mount -u / # mount -a # swapon -a # adjkerntz -i If not, what are IS the right procedure? -- dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: dump question
On Mon, Mar 10, 2003 at 04:43:49PM +0100, dick hoogendijk wrote: Using dump to make a full level 0 backup of my system to another harddisk in case of a crash. If needed I want to restore the dumps and have a fully working system back. Question: do I have to make the dumps *single* mode or can I just do it from a running system? No, you can dump while in multiuser mode, but you have to beware of corruption in the dump caused by changes to the file system or even to individual files while dump is running. So long as the filesystem is pretty much quiescent, you'll be OK. If single, do I have to follow the next steps: ?? # boot -s # fsck -p # mount -u / # mount -a # swapon -a # adjkerntz -i Hmmm... You don't need 'mount -u /' if you then immediately do 'mount -a' as 'mount -a' will remount the root filesystem with the correct options anyhow. I'd put 'swapon -a' before 'mount -a', especially if you've got mfs based filesystems. 'adjkerntz' should only be needed on dual boot machines where the alternate OS needs the system clock to be set to the wallclock time. If your machine just runs FreeBSD, then set the system clock to UTC and relax. If not, what are IS the right procedure? boot -s fsck -p swapon -a mount -a adjkerntz -i Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: dump question
In the last episode (Mar 10), dick hoogendijk said: Using dump to make a full level 0 backup of my system to another harddisk in case of a crash. If needed I want to restore the dumps and have a fully working system back. Question: do I have to make the dumps *single* mode or can I just do it from a running system? You can do it from a running system, but be aware that there is a chance that files (or directories) modified during the backup will get lost. I usually kill all remote logins, inetd, cron, sendmail, and anything else with a listening TCP socket before doing my backups. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
dump question
I was wondering if anyone could tell me what would get backed up when I issue this command. dump -0u -f /NT/FreeBSD/012103 / basically I want to do a full backup of everything in the root dir to /NT/FreeBSD/012103 which is a mounted drive. so does this backup everyting on the comp? like when I do cd / and ls I see bin, boot, dev, etc, home , etc. does all this get backed up? Thanks and sorry if this is a dumb question. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: dump question
Kenzo wrote: I was wondering if anyone could tell me what would get backed up when I issue this command. dump -0u -f /NT/FreeBSD/012103 / basically I want to do a full backup of everything in the root dir to /NT/FreeBSD/012103 which is a mounted drive. so does this backup everyting on the comp? like when I do cd / and ls I see bin, boot, dev, etc, home , etc. does all this get backed up? Probably not, but it depends on your partition scheme. dump backs up filesytems, it does not traverse mount points. So if you have your partitions split up in the default manner that sysinstall uses, you probably are only backing up /, /root, /etc, and maybe a few others. /usr, /var, /tmp, and /home are usually on different partitions, so you'll need additional commands to back those up. Of course, if you made your whole drive one big partition, then the dump command above _will_ back up the whole hard drive. Or you could use tar, which does cross mountpoints. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message