Re: Backup Question

2005-06-07 Thread Roland Smith
On Tue, Jun 07, 2005 at 11:02:28AM -0500, Cody Holland wrote:
> Ok, I'm trying to do a simple tar+gzip backup for my file system.  I can
> do this no problem.  The backup is a little less than 2Gb.  What I would
> like to do is chop this up into 650Mb pieces that I can ftp over to a
> server with a cd-r and burn them.  Does anyone know a good utility that
> can do this, or another method that will accomplish what I'm trying to
> do?

You could use split(1) as others have suggested. But that means you have
to concatenate the parts on disk before you can restore the backup.

Another option is to use gnu tar (gtar) with the -F and -L options. This
will create a multi-volume tar file, that might be easier to restore.

Making incremental backups (with the -N or --newer-mtime options of
gtar) will also reduce the space needed by subsequent backups.

Yet another option would be to replace your CD writer with a DVD writer
and write it all in one go, with room to spare. :-)

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpUnAollF2uZ.pgp
Description: PGP signature


Re: Backup Question

2005-06-07 Thread Karl Pielorz



--On 07 June 2005 11:02 -0500 Cody Holland <[EMAIL PROTECTED]> 
wrote:



Ok, I'm trying to do a simple tar+gzip backup for my file system.  I can
do this no problem.  The backup is a little less than 2Gb.  What I would
like to do is chop this up into 650Mb pieces that I can ftp over to a
server with a cd-r and burn them.  Does anyone know a good utility that
can do this, or another method that will accomplish what I'm trying to
do?


split -b (see the man page) - or I think tar has an option to define both 
the 'size of the tape' (in 1k blocks) and a script to run 'between tape 
changes' - so you should be able to sort something out with that...


-Karl

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


Re: Backup Question

2005-06-07 Thread [EMAIL PROTECTED]
On Tue, 7 Jun 2005 11:02:28 -0500
"Cody Holland" <[EMAIL PROTECTED]> wrote:

> Ok, I'm trying to do a simple tar+gzip backup for my file system.  I
> can do this no problem.  The backup is a little less than 2Gb.  What I
> would like to do is chop this up into 650Mb pieces that I can ftp over
> to a server with a cd-r and burn them.  Does anyone know a good
> utility that can do this, or another method that will accomplish what
> I'm trying to do?

you can try split, see : man split

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


Re: Backup Question

2005-06-07 Thread Lowell Gilbert
"Cody Holland" <[EMAIL PROTECTED]> writes:

> Ok, I'm trying to do a simple tar+gzip backup for my file system.  I can
> do this no problem.  The backup is a little less than 2Gb.  What I would
> like to do is chop this up into 650Mb pieces that I can ftp over to a
> server with a cd-r and burn them.  Does anyone know a good utility that
> can do this, or another method that will accomplish what I'm trying to
> do?

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


Backup Question

2005-06-07 Thread Cody Holland
Ok, I'm trying to do a simple tar+gzip backup for my file system.  I can
do this no problem.  The backup is a little less than 2Gb.  What I would
like to do is chop this up into 650Mb pieces that I can ftp over to a
server with a cd-r and burn them.  Does anyone know a good utility that
can do this, or another method that will accomplish what I'm trying to
do?


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


Re: Backup question

2004-06-09 Thread Andy Smith
On Wed, Jun 09, 2004 at 10:29:27AM -0400, Karen Donathan wrote:
> Hello.
> 
>  What is the best way to back up the html directory?  We do not have a
> tape drive.  Is there a way to have an automated .tar file created and
> sent as email so I could save it on another server?  Any help would be
> great!

In addition to other suggestions, for various remote servers I like
using rsnapshot (google for its homepage, it's also in the ports
collection).

It works as rsync over ssh, and it keeps a configurable amount of
previous snapshots.  e.g. a common configurations is 6 per day at
4-hourly intervals, 7 per week at daily intervals, and 4 per month at
weeks intervals, so that you can always go back to see what your
files were like up to a month ago.

Since your HTML files are probably comparatively small, you may find
this method quite convenient.  Even for large sets of files the
hardlinking of unchanged files means that surprisingly little
overhead of disk space is used.

-- 
http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B


pgp1EMFTHWZzm.pgp
Description: PGP signature


Re: Backup question

2004-06-09 Thread Matthew Seaman
On Wed, Jun 09, 2004 at 10:29:27AM -0400, Karen Donathan wrote:

>  What is the best way to back up the html directory?  We do not have a
> tape drive.  Is there a way to have an automated .tar file created and
> sent as email so I could save it on another server?  Any help would be
> great!

Yeah.  This sort of thing is easy to do with a very small shell
script.  From your specifications, something like this will do the
job:

#!/bin/sh

PATH=/bin:/usr/bin ; export PATH

htmldir=/usr/local/www/data
recipient="[EMAIL PROTECTED]"
today=$(date +%Y%m%d)

tar -cvjf - ${htmldir} | uuencode backup-${today}.tar.bz2 | \
mail -s "Backup of ${htmldir} on ${today}" ${recipient} \
>>/var/log/backup.log 2>&1

Save that to a file, make it executable and run it out of root's
crontab on a daily basis:

@daily /usr/local/bin/mybackupscript

(be sure you understand the difference between /etc/crontab and
/var/cron/tabs/root, and how to use crontab(1) correctly: do *not*
feed /etc/crontab into the crontab command.)

The recipient should use procmail or similar to feed the backup
messages into uudecode and so extract the compressed tar file.

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


pgpXU3B2hUKU9.pgp
Description: PGP signature


Re: Backup question

2004-06-09 Thread Bill Moran
Karen Donathan <[EMAIL PROTECTED]> wrote:

> Hello.
> 
>  What is the best way to back up the html directory?  We do not have a
> tape drive.  Is there a way to have an automated .tar file created and
> sent as email so I could save it on another server?  Any help would be
> great!

Ah ... a neophyte unwittingly asking to be taught the magic of shell-scripting.

Yes, you can do everything you ask.  The trick is to write a shell script to
automate it for you, then add the shell script to cron to be automagically
executed on a schedule.

Here's my suggestion:
1) Study the attached shell script, it backs up to a seperate HDD, but it'll
   give you an idea of how things work
2) Read up on "man mail" to learn how to use the mail program from a shell
   script
3) Write your own and test it from the command line.
4) Add a cron entry to automate it.
5) Once you're getting good backups, look into using rsync to make the process
   even smoother.


#!/bin/sh
 
# Takes the files in /backup/source and bzips them into an
# archive in /backup/archive
# Also deletes archive files older than a certain amount
 
DATE=`/bin/date "+%F"`
MAXAGE=14
 
/usr/bin/tar cyf /backup/archive/backup-${DATE}.tbz /backup/source > /dev/null 2>&1
/usr/bin/find /backup/archive -mtime ${MAXAGE} -delete


-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup question

2004-06-09 Thread Kevin D. Kinsey, DaleCo, S.P.
Karen Donathan wrote:
Hello.
What is the best way to back up the html directory?  We do not have a
tape drive.  

There are many.  Keep watching the list and some might show up.

Is there a way to have an automated .tar file created and
sent as email so I could save it on another server?  Any help would be
great!
Thanks
Karen Donathan
George Washington High School
Charleston, WV
 

There are lots of ways, I'm sure, although, like I said, this strategy
might not be the best option --- I'm no expert.  OTOH, if it works ...
Hmm, something like this in cron?  You'd need to get acquainted
with shar(1), that old sneaky archiving process
tar -R mydir -cf mydir.tar && shar mydir.tar > mydir.tar.shar && mail 
[EMAIL PROTECTED] < mydir.tar.shar

HTH,
Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup question

2004-06-09 Thread Micheal Patterson

- Original Message - 
From: "Karen Donathan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 09, 2004 9:29 AM
Subject: Backup question


> Hello.
>
>  What is the best way to back up the html directory?  We do not have a
> tape drive.  Is there a way to have an automated .tar file created and
> sent as email so I could save it on another server?  Any help would be
> great!
>
> Thanks
> Karen Donathan
> George Washington High School
> Charleston, WV
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"


Sure, have a crontab do the tar daily and then use mutt to send it as an
attachment to the desired email address. Keep in mind, if you're not doing
the mail services yourself, some mail servers limit the file size of
attachments.

--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.



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


Re: Backup question

2004-06-09 Thread Michael Hollmann
hi
there ara many ways:
- tar to dvd +/- rw
- tar and scp to another unix server
- tar and smbclient to another windows server
- tar and mail
regards michael
Karen Donathan wrote:
Hello.
 What is the best way to back up the html directory?  We do not have a
tape drive.  Is there a way to have an automated .tar file created and
sent as email so I could save it on another server?  Any help would be
great!
Thanks
Karen Donathan
George Washington High School
Charleston, WV
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Backup question

2004-06-09 Thread Karen Donathan
Hello.

 What is the best way to back up the html directory?  We do not have a
tape drive.  Is there a way to have an automated .tar file created and
sent as email so I could save it on another server?  Any help would be
great!

Thanks
Karen Donathan
George Washington High School
Charleston, WV
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dump backup question

2004-06-05 Thread Nagilum
Hi,
I assume you could script something using expect, but maybe you should 
consider using a real backup program like for example bacula.
Kind regards,
Alex.

[EMAIL PROTECTED] wrote:
  Hi,
 I'm running FreeBSD 5.1 and I'm trying to backup= a filesystem
  which is quite large with many files. I'm using dump, and= using a
  remote tape. I'm also using cron to make a daily backup with d= ump
  level 9, and a weekly dump with level 0. The problem I have is that   during the 
dump process there is a need for interaction, and
  providing= lots of "yes" when I get prompted if I want to continue
  with the new v= olume. How can I avoid this ? I want the backup to be
  automatic, with n= o need for interaction.

  Thanks,

  Matias
  __   Todavía no tenés tu Ciudad 
Internet Mail? Obtenelo ahora! -   [1]http://webmai= l.ciudad.com.ar
  Descargá Gratis el nuevo Internet Explorer= 6.0, el mejor software
  para actualizar tu PC. [2]Hacé click acá.
References
  1. 3D'http://webmail.ciudad.com.ar'/
  2. 3D'http://www.ci=/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 


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


dump backup question

2004-06-04 Thread matiaspinedo

   Hi,

  I'm running FreeBSD 5.1 and I'm trying to backup= a filesystem
   which is quite large with many files. I'm using dump, and= using a
   remote tape. I'm also using cron to make a daily backup with d= ump
   level 9, and a weekly dump with level 0. The problem I have is that   during the 
dump process there is a need for interaction, and
   providing= lots of "yes" when I get prompted if I want to continue
   with the new v= olume. How can I avoid this ? I want the backup to be
   automatic, with n= o need for interaction.



   Thanks,



   Matias

   __   Todavía no tenés tu Ciudad 
Internet Mail? Obtenelo ahora! -   [1]http://webmai= l.ciudad.com.ar
   Descargá Gratis el nuevo Internet Explorer= 6.0, el mejor software
   para actualizar tu PC. [2]Hacé click acá.

References

   1. 3D'http://webmail.ciudad.com.ar'/
   2. 3D'http://www.ci=/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


backup question

2004-02-07 Thread Craig Beasland
Hi there,

We have a large disk that now required 2 tapes to backup.  We are trying
to use the -M --new-volume-script to execute a script which sends an
email to the person and waits for them to press the "c" key to continue.
The next-tape scripts works when run from the console directly and the
message is displayed to the user to insert the next tape, but tar still
reports an error.

Have I missed an important step?  The tar seems to execute the script
but then immediately try to write onto the next tape - before I get a
chance to put the new tape in.

Any ideas on how to fix this, or a better method of backing up to multi
tapes?

Here is my script:
#!/bin/sh
mt -f /dev/st0 rewind
tar -c  \
-v  \
-f /dev/st0 \
--new-volume-script "/etc/scripts/next-tape"\
--multi-volume /backup

mt -f /dev/st0 eject

and here is the next-tape command
#!/bin/sh
cat /etc/scripts/newtape.txt | mail -s "new tape" [EMAIL PROTECTED]

echo -n Press 'C' to continue
while true
do
read -n 1 keypressed
if [ "$keypressed" = 'c' ];
then break;
fi
if [ "$keypressed" = 'C' ];
then break;
fi
done

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


Re: backup question

2004-02-06 Thread anubis
On Fri, 6 Feb 2004 10:52 am, Warren Block wrote:
> On Thu, 5 Feb 2004, Darryl Hoar wrote:
> > I have a Freebsd 5.1-release box with samba installed, configured and
> > working.
> >
> > On my network I have an NT 4 server (can't change this right now).  It
> > has a share on it called publications.
> >
> > I would like to synchronize (in one direction) the files from the
> > publication share to the Freebsd box.  So, when I synchronized, any
> > changes on the publications share are copied to the freebsd box, but
> > NEVER the other way.
>
> Use mount_smbfs to mount the publications share read-only on the FreeBSD
> system.  Then use rsync -a to copy it to your backup location.
>
> -Warren Block * Rapid City, South Dakota USA
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

And the CRON ring to rule them all

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


Re: backup question

2004-02-05 Thread Warren Block
On Thu, 5 Feb 2004, Darryl Hoar wrote:

> I have a Freebsd 5.1-release box with samba installed, configured and
> working.
>
> On my network I have an NT 4 server (can't change this right now).  It has
> a share on it called publications.
>
> I would like to synchronize (in one direction) the files from the
> publication share to the Freebsd box.  So, when I synchronized, any
> changes on the publications share are copied to the freebsd box, but
> NEVER the other way.

Use mount_smbfs to mount the publications share read-only on the FreeBSD
system.  Then use rsync -a to copy it to your backup location.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup question

2004-02-05 Thread HOLLOW, CHRISTOPHER
Here's how I do it...

- Open a writable Samba share on the FreeBSD box.
- Map the drive from Windows and ensure the Win-user
can write to it.
- Schedule Robocopy (Res. Kit utility) to sync the
Samba share from publications.
Should do it.  Robocoy script should be something like:

robocopy.exe C:\publications J:\sambashare /mir >> C:\robocopy.log

where C:\ is your local source directory that you
are syncing  from and J: is your mapped Samba share
on the FreeBSD box.
HTH,

Christopher Hollow

Darryl Hoar wrote:

Greetings,
I have a Freebsd 5.1-release box with samba installed, configured and
working.
On my network I have an NT 4 server (can't change this right now).  It has
a share on it called publications.
I would like to synchronize (in one direction) the files from the
publication
share to the Freebsd box.  So, when I synchronized, any changes on the
publications share are copied to the freebsd box, but NEVER the other way.
Any ideas on this ?

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

--
Christopher Hollow - Technical Consultant
Infrastructure & Technology Support
Toronto, ON


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


backup question

2004-02-05 Thread Darryl Hoar
Greetings,
I have a Freebsd 5.1-release box with samba installed, configured and
working.

On my network I have an NT 4 server (can't change this right now).  It has
a share on it called publications.

I would like to synchronize (in one direction) the files from the
publication
share to the Freebsd box.  So, when I synchronized, any changes on the
publications share are copied to the freebsd box, but NEVER the other way.

Any ideas on this ?

thanks,
Darryl

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


Re: Upgrade/Backup question

2003-09-10 Thread Alin-Adrian Anton
Michael A. Alestock wrote:

I'm planning on upgrading to a most recent version of FreeBSD (v4.7 to
v4.8).  I plan on backing up data before doing so.  Which configuration
files (or filesystem[s]) should I backup ??  /, /etc, /var, /usr ???  I'm
excluding "/usr/home" because that's standard anyways.
 

Michael A., USA
 

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

Backup everything using the tar utility. Backup /.

Alin.



smime.p7s
Description: S/MIME Cryptographic Signature


Upgrade/Backup question

2003-09-10 Thread Michael A. Alestock
I'm planning on upgrading to a most recent version of FreeBSD (v4.7 to
v4.8).  I plan on backing up data before doing so.  Which configuration
files (or filesystem[s]) should I backup ??  /, /etc, /var, /usr ???  I'm
excluding "/usr/home" because that's standard anyways.

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


Re: drive image dd booting backup question a non-issue

2003-03-25 Thread trader
My apologies...

The BIOS just needed a sharp smack up against the 
head, and it has booted just fine.

Old hardware... {mutters}

Thanks again,

G. Sherman

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


drive image dd booting backup question

2003-03-25 Thread trader
Hi,

I have two identical (model/size/etc.) hard drives 
in a computer, both of which are recognized by the 
PC's BIOS, both of which are listed in dmesg as ad0 
and ad1, respectively, and both of which appear as 
/dev/ad0 and /dev/ad1.  One is master, one is slave.  
The slave (ad1) is never mounted.

My goal was to install FreeBSD and set up apps 
for a user on the 'master' drive (ad0), then 'image' 
the drive over to ad1 (to produce backup media for 
the project) using the following command:

dd if=/dev/ad0 of=/dev/ad1 bs=512

So far, so good, everything works great.  dd 
reports that everything went smoothly.  Then I 
attempt to boot off the that slave drive, after 
performing the following steps to make what was 
once ad1 is now the primary ad0 drive:

* disengaged the drive data cable from ad0
* set ad1's jumper to a single drive
* changed the bios to recognize only one drive

When I try to boot off what was once the slave 
drive (ad1), however, I get errors that /boot/loader 
and /kernel can't be found.

>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/kernel
boot:
Not ufs
No /kernel

Does anybody have any thoughts on what I might 
have missed?  Google and newsgroup searches have 
not produced an answer that's helpful.  Of course,
I hope I haven't committed some remedial error and 
wasted your time with this post.

Thanks,

G. Sherman


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