DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 7th August 2008
cwhitmore cwhitmore is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 0 Times in 0 Posts
Default Auto backup

I'd like to run a script once a week to backup /root, /usr and /var. I'd also like to tar those dump files. If I run the following script what do I need to add to it to compress the dump files? Also, will the dump commands run one after another or do I need something to start each one?

#!/bin/sh

mount /dev/d0s1 /mnt/usb

dump -0au -L -f /mnt/usb/usr.ad0s1f.dump /usr
dump -0au -L -f /mnt/usb/var.ad0s1d.dump /var
dump -0au -L -f /mnt/usb/root.ad0s1a.dump /

#end
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM
auto restart an app within wine hamba General software and network 3 25th November 2008 11:56 AM
Auto-YES? wubrgamer FreeBSD Ports and Packages 7 24th September 2008 01:58 PM
DSL auto login Weaseal FreeBSD General 3 17th June 2008 03:26 PM
Customizeable FTP auto-fetch script (OpenBSD snapshot download as example) J65nko Guides 2 1st June 2008 03:29 AM


All times are GMT. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick