backup

2005-05-12 Thread Matt Juszczak
Howdy,
My server has an 18 gig drive in it. I'm looking to do incremental backups 
every night, where my entire /ext partition will be mirrored elsewhere 
(/ext is the only thing with anything special on it that would need to be 
recreated).

I was thinking of either backing up to my home machine, which for the most 
part has a static IP (dynamic every 3-4 months), or getting an external 
hard drive.  The server is a 1U.

Does anyone have any suggestions, both for how to do this, and what kind 
of media to use?  (External hard drive, tape drive, remote backup to my 
home machine, etc.)

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


Backup

2005-09-26 Thread Aguiar Magalhaes
Hi list,

can I make a copy using dd command from a HD scsi
Maxtor 36 GB to a HD IDE Sansung 40 GB ?

How can I do it ?? Is there an example ??

Thanks,

Aguiar






___ 
Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e 
muito mais. Instale agora! 
www.yahoo.com.br/messenger/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


backup

2004-02-23 Thread Richard Beyer
We're currently doing a back up of a FreeBSD 4.9 (2) server by plugging a
USB external drive in and then doing

 

cp /dev/ad0 /dev/da0

 

This takes about 30 hours, (USB 1).

 

Is this the best way to do it, or can someone suggest a better way.  We'd
rather not have the server offline while we do it.

 

Cheers,

Richard

 

 

 

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


backup

2003-01-20 Thread Kenzo
I'm trying to figure out the best way to backup my server.
I don't have a CD burner, tape drive or other media to write backup to.
So what I want to do, is connect to my other comp with cd burner and that
runs on WinXP.
I was thinking of using shlight since It seems to work good.
In Webmin under backup you can issue a command to perform before and after
the backup.
I tried to set it up to mount the windows command before the backup and
umount it after, but that didn't work.
I think the kernel didn't like that.
If I do it manually it works fine.

Now is there another/better way of doing what I want to do?
I was also thinking about using Cron to issue the commands.
A script might do it, but I don't know anything about writing sripts.

Thanks.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



backup

2003-02-12 Thread Brian Henning
Hello-
I would like to backup my cvs repository in case my system goes down or incase i
want to move the repository. can i tar up the files in the root directory and
save it on a cd?

I would also like to back up my mysql databases for the same reasons. can i tar
those up for later use?


thanks,

brian

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Backup/Restore

2004-09-30 Thread Brian McCann
 Hi all...I'm having a conceptual problem I can't get around and
was hoping someone can change my focus here.  I've been backing up
roughly 6-8 million small files (roughly 2-4k each) using dump, but
restores take forever due to the huge number of files and directories.
 Luckily, I haven't had to restore for an emergency yet...but if I
need to, I'm kinda stuck.  I've looked at distributed file systems
like CODA, but the number of files I have to deal with will make it
choke.  Can anyone offer any suggestions?  I've pondered running
rsync, but am very worried about how long that will take...

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


backup strategies

2005-10-30 Thread Csaba Henk
Hi!

We plan to set up a backup server.

While the basic backup procedure is clear -- use some archiving utility
like dump, tar, or cpio and send data to the backup server via ssh or a
network mount -- there are many details which are unclear for me.

The two biggest problems are:

1) What parts are to be backed up? If I backup the whole system, the
backup disk will get full soon. You could say it's not necessary, and
that only the valueable data should be backed up (and not those parts
which are easy to re-create by means of a new installation). But, say,
someone breaks into the machince. How could I reliably find out the
Achilles heel she used to get in if I don't have a complete system
backup? Or if she has a backdoor left behind?

2) How to schedule backups? I guess services should stop for the backup
period as the backup could be unreliable or inconsistent if disk/file
writes were going on during backup. It sounds as if I should drop to
single user mode. Or is there a less drastic approach? And if I dropped
to single user mode, I would lose control over the box for that period,
as the box is accessed via ssh and sshd is also stopped in single user
mode -- this sounds scary...

TYA.

-- 
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Backup scheme

2005-11-18 Thread Svein Halvor Halvorsen

I'm in the process of employing the following backup scheme:

1) Take a snapshot using mksnap_ffs
2) Mount the snapshot
3) rsync the mounted snapshot to a remote server
4) Unmount and delete local snapshot
5) Take a new snapshot on the remote computer
6) Rotate old snapshots
7) Somehow export the snapshots back to the original computer


So I've got 1-6 working. This gived my a space efficient backup system, 
remotely stored. As to pt. 7, I was thinking of using NFS, but since the 
remote server is behind NAT, this seems unfeasible. So now what?

NFS over VPN? ggated/ggatec? Other solutions?

___
freebsd-questions@freebsd.org 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]"


backup routes

2004-12-22 Thread FreeBSD MailingLists
I have a FBSD box acting as a gateway for the network.  I was
wondering if there is anyway to set up the routing table so I can
setup automatic backup routes?

I want the system to try to route packets to A.  But if A is down,
automatically set the route to B...

Is there anyway to set this up?

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


Backup softwares ?

2006-03-01 Thread Frank Bonnet

Hello

I'm searching for a professional backup software that runs with FreeBSD 6.x
it will drive an Overland library and would have an ergonomical graphical 
interface
as the person who will use it will not be a computer freak :-) also the easy 
restoring
capabilities would be a plus.

there are now a lot that run with Linux but I would prefer FreeBSD ...

Any infos welcome
Thanks you
--
Frank Bonnet
- Memory fault - where am I? -
___
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]"


Full backup

2005-05-03 Thread Aguiar Magalhaes
Hi list,

I´m using FreeBSD 5.3 - Release and I´d like to known
how to make a "full" backup (image) of my HD scsi.

With Linux machines I´ve used Norton Ghost to make a
image from HD. If I had a "crash" in my HD, I restore
the image in a few minutes.

How can I to proceed in FreeBSD ?

Aguiar





Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Ports backup

2005-05-11 Thread Graham North
Hello all:
Thank you Trevor and Ted for your help.
I got rid of all but the PRN directory and will work on that.
Trevor - will try your ideas, the command line del and rd didn't seem to 
work.  Am not familiar with sfc but will do some digging.

Ports tree was transferred from Freebsd to WinBox via samba without 
incident.

Cheers,  Graham/
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 5/10/2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup

2005-05-12 Thread Tim Aslat
On Thu, 12 May 2005 21:05:35 -0400 (EDT)
Matt Juszczak <[EMAIL PROTECTED]> wrote:
> My server has an 18 gig drive in it. I'm looking to do incremental
> backups  every night, where my entire /ext partition will be mirrored
> elsewhere  (/ext is the only thing with anything special on it that
> would need to be  recreated).
> 
> I was thinking of either backing up to my home machine, which for the
> most  part has a static IP (dynamic every 3-4 months), or getting an
> external  hard drive.  The server is a 1U.
> 
> Does anyone have any suggestions, both for how to do this, and what
> kind  of media to use?  (External hard drive, tape drive, remote
> backup to my  home machine, etc.)

I currently backup a 80Gb partition via my office DSL link using a
script based around rsync (/usr/ports/net/rsync).  it's one of the most
brilliant programs around for this kind of thing.

A quick search on google.com should provide examples of other people's
scripts & solutions.

Cheers

Tim


-- 
Tim Aslat <[EMAIL PROTECTED]>
Spyderweb Consulting
http://www.spyderweb.com.au
Phone: +61 8 84193434
Mobile: +61 0401088479
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup

2005-05-13 Thread Hexren
> Howdy,

> My server has an 18 gig drive in it. I'm looking to do incremental backups 
> every night, where my entire /ext partition will be mirrored elsewhere 
> (/ext is the only thing with anything special on it that would need to be 
> recreated).

> I was thinking of either backing up to my home machine, which for the most 
> part has a static IP (dynamic every 3-4 months), or getting an external 
> hard drive.  The server is a 1U.

> Does anyone have any suggestions, both for how to do this, and what kind 
> of media to use?  (External hard drive, tape drive, remote backup to my 
> home machine, etc.)

> Thanks!

> Regards,

> Matt

-

Imho if possible a remote location should be the backup site as that
gives you a backup even if the Server is destroyed by *insert
something nasty here* pull the backup from your homemaschine and you
need not worry about dynamic ips.

Regards
Hexren

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


Re: backup

2005-05-13 Thread Matt Juszczak
Problem with this is that I have to then create a tar file on the remote 
machine, because if I login with sftp from my remote machine, that account 
wont have access to read all the files it needs to read.

-Matt
On Fri, 13 May 2005, Hexren wrote:
Howdy,

My server has an 18 gig drive in it. I'm looking to do incremental backups
every night, where my entire /ext partition will be mirrored elsewhere
(/ext is the only thing with anything special on it that would need to be
recreated).

I was thinking of either backing up to my home machine, which for the most
part has a static IP (dynamic every 3-4 months), or getting an external
hard drive.  The server is a 1U.

Does anyone have any suggestions, both for how to do this, and what kind
of media to use?  (External hard drive, tape drive, remote backup to my
home machine, etc.)

Thanks!

Regards,

Matt
-
Imho if possible a remote location should be the backup site as that
gives you a backup even if the Server is destroyed by *insert
something nasty here* pull the backup from your homemaschine and you
need not worry about dynamic ips.
Regards
Hexren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
!DSPAM:42846692602911013311699!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup

2005-05-13 Thread Mark Bucciarelli
Matt Juszczak wrote:
Problem with this is that I have to then create a tar file on the remote 
machine, because if I login with sftp from my remote machine, that 
account wont have access to read all the files it needs to read.
you can:
- create a password-protected ssh cert for root
- load key into ssh-agent on the client
- limit abilities of root ssh connections on server
  using rsync wrapper [1]
- rsync from remote server with cron.
m
[1] http://www.bombich.com/mactips/rsync.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Backup Products

2005-08-08 Thread Sean Murphy
We currently our using Veritas Netbackup Datacenter 4.5 on a Windows 
server to backup our FreeBSD, Apple, Windows, Netware, and Solaris Servers.


This Cross-Platform works wonderfully.  However I was wondering if 
anyone had any successs with an open source backup product that would be 
able to control 2 tape librarys on the same scsi chain, with each tape 
having a bar code, and be able to backup and restore the systems above.



--
Sean Murphy
Senior Network Technician
California Institute of the Arts
661-253-7732
[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

2005-09-26 Thread Philip Hallstrom

On Mon, 26 Sep 2005, Aguiar Magalhaes wrote:


Hi list,

can I make a copy using dd command from a HD scsi
Maxtor 36 GB to a HD IDE Sansung 40 GB ?

How can I do it ?? Is there an example ??


http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK

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


Re: Backup

2005-09-27 Thread Jerry McAllister
> 
> Hi list,
> 
> can I make a copy using dd command from a HD scsi
> Maxtor 36 GB to a HD IDE Sansung 40 GB ?

You can, but you probably do not want to.   
Although you don't say much about what you are trying to do,
I am guessing you want to "duplicate" the 36 GB disk on the 40 GB
drive.   Since they are not identical, they will not be true
duplicate copies.   But, you don't really need that.  You probably
really need the file structure on the new drive, not the byte by byte 
copy.

So, fdisk and disklabel/bsdlabel the new drive to create the
slice and partition set that you want - probably each the same as on
the old one but just a few bytes bigger.   Make at least one slice
with fdisk and one partition with disklabel/bsdlabel - more if your
design needs them.

Then newfs the partition[s] to make filesystem[s].

Make mount point[s] for the new filesystem[s] and mount it/them.  You can 
put it/them in /etc/fstab, but if they are only temporary mount point[s], 
you don't need to.

Then dump [each of] the old file system[s] and restore it/them in to
the new file systems.   Note that you need to be CD-ed in to the
new file system for the restore to do what you want.
So, lets say you are transferring your partition that is normally
mounted as /usr.   
You created a filesystem and mounted it as /newusr
Then  cd /newusr
  dump -0af - /usr | restore -rf -

This will get you a functionally identical copy of the disk
but also correct for the different drives.

jerry

> 
> How can I do it ?? Is there an example ??
> 
> Thanks,
> 
> Aguiar
> 
> 
>   
> 
>   
>   
> ___ 
> Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e 
> muito mais. Instale agora! 
> www.yahoo.com.br/messenger/
> ___
> 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]"


Incremental backup!

2005-10-08 Thread Carstea Catalin
i want to back-up  on cd my www -directory. i want to use for this, cd -media.
At some intervals i want to make incremental backup and put the result on cd.
.
i use kde and i want a grafical tool for write cd.
.
if u have one solution for my problem pls. send me a reply!

--
Any help would be greatly appreciated.
regards,
Carstea Catalin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Backup Size

2009-08-10 Thread Jay Hall

I am sure there is an easy explanation for this, but I cannot find it.

I am backing up my /etc directory using the following command.

tar -cvf - /etc | dd of=/dev/nsa1 obs=10240

When the command completes, I receive the following message.

3080+0 records in
154+0 records out
1576960 bytes transferred in 0.179921 secs (8764740 bytes/sec)

What concerns me is when running du -h /etc, the size of the folder is  
reported as 1.7M.


Is the number of bytes written to the tape less than the reported size  
of the directory because of the way the files are written to the  
tape?  If so, how can the amount of space used be calculated?


Thanks for your help.


Jay
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


backup tools

2012-06-22 Thread Chad Perrin
I'm setting up a "new" backup server using FreeBSD.  It will be used for
backing up laptops, which will not be connected to the network by any
kind of schedule, so backups will be initiated manually rather than by
cron or other scheduled procedures.  I'm trying to decide on what tools
to use for managing backups.  In the past I have used rsync, which has
worked reasonably well, but fails one of my desired criteria for the new
backup procedures, and is less than ideal for others.

My criteria for procedures are:

1. They should minimize the need for additional software beyond the base
system as much as reasonably possible.  This means not only that I do not
want to have to specify the installation of a bunch of stuff, but also
that I do not want a bunch of dependencies pulled in with something I
choose to install (if anything).  Ideally, I should be able to do this
with just the base system, though that seems unlikely at this point.

2. They should require only copyfree licensed or public domain tools --
no copyleft licensed tools, no proprietary licensed tools, no
noncommercial or nonderivative licensed tools, and no "permissively"
licensed tools where the license comes with annoying restrictions such as
the Apache License requirements for specific bookkeeping procedures.  I
might bend on the requirement for non-copyfree "permissive" licenses if I
have to, but I'd rather not; bending on any of the others would probably
involve just giving up and going back to rsync.

3. They should provide for incremental backups.

4. They should provide for the ability to quickly and easily test backup
integrity without restoring the backups anywhere, which most likely means
some kind of checksum comparisons akin to what rsync provides.

5. They should allow for transferring data from the system to be backed
up to the backup server via SSH.

6. They should use tools as simple as possible, preferably command line
tools.

7. There should be documentation somewhere out there for how to set
something like this up, someone willing to help me figure out how to get
it set up, or an obvious path to setting it up so that I do not spend a
week just figuring it all out, if at all possible.

8. They should preferably not require creating a local archive on the
laptop before copying to the backup server if it can reasonably be
avoided, so that a big chunk of empty HDD space will not need to be
maintained for backups to work.

Any help figuring out what tools would work for these purposes would be
appreciated.  I might be able to make exceptions for some parts of this
if there are suitable alternative approaches.

Thanks in advance for any help I can get in figuring this out.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Backup Solution

2007-09-26 Thread Terry Sposato
Hello everyone,

 

I am relatively new to the FreeBSD game and have a bit of a problem which I
am not sure how to tackle. I recently build a server running VMWare ESX
Server 3 which will eventually run 6-7 small production VM's. These Virtual
Machines obviously have the need for backups and it poses quite a problem
for me unless I connect 6-7 external tape drives and give each VM it's own
tape device. I have looked into a few solutions using VM products
(consolidated backup) but it can only be done if you utilise a SAN. 

 

The server is running RAID 5 with around 700GB of space. Each VM may take up
to 50GB and backups might be around 15-20GB per VM. The machine itself has
an internal LTO3 tape drive, has anyone come across this kind of situation
before, and if so what would be a good way to backup each VM? It is easy
enough to backup the image files from the host machine but I need file level
backups within each VM also.

 

I will be very grateful for suggestions or ways people have tackled this
kind of problem in a production environment.

 

Thanks.

 

Regards,

 

Terry

http://www.sucked-in.com

Have you been sucked in?

 

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


Backup Winserver

2008-11-04 Thread Graham Bentley

Hi All,

Is there anyone using Rsync on windows to backup to 
a Linux or FreeBSD server?


Are the Windows Rsync implementations reliable?

Or, how are people doing this? [ftp etc?]

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


Backup Script

2007-03-03 Thread Robert Davison
Im trying to write a small backup script which I have put in 
/etc/periodic/weekly. The script is as follows..
   
  #!/bin/sh
#
#weekly backup of chosen files
#
if
then
tar -cf /dev/sa0 /var/ftp /home /etc /usr/local
echo "backing up the disks"
else
echo "There was a problem" 1>&2
exit 1
fi
  echo "Finished at `/bin/date`."
exit

   
  Now I have no experience at bash scripting as was wonderng if someone could 
give me some help with the if statement. Basically im trying to test to see if 
the machine knows that /dev/sa0 (my tape drive) is accessable. If it is then it 
continus to the backup, if not then it gives the error message and echos the 
date.
   
  Any help would be much appreciated.



-
 New Yahoo! Mail is the ultimate force in competitive emailing. Find out more 
at the Yahoo! Mail Championships. Plus: play games and win prizes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


backup solution

2007-02-10 Thread Dino Vliet
Hi peeps,

I'm busy preparing my via c3 system to utilize it as a
backup file server.

On the motherboard I have two IDE channels and
currenntly they have installed a IDE hard disk and a
dvd-rom. However, I have bought an extra IDE cable
where I will put two IDE hard disks in a master-slave
or cable select relation and put that on one of the
IDE banks. The other IDE bank I will use to put the
primary disk and the dvd-rom in a master-slave or
cable-select relation.

Then I will install freebsd on the first disk and will
use the two spare IDE-disks on the same cable as a
geom-mirror. 

I will use the system then as a central node with
rsync to do daily backups of my main data that is
scattered around on different desktops on my lan.

Does anyone have tips regarding this kind o
installation?

Do I also need a specialised tool like bacula for the
way I want to use it?

Brgds
Dino


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Backup advice

2007-05-23 Thread Jason Lixfeld
So I feel a need to start backing up my servers.  To that end, I've  
decided that it's easier for me to grab an external USB drive instead  
of a tape.  It would seem dump/restore are the tools of choice.  My  
backup strategy is pretty much "I don't want to be screwed if my RAID  
goes away".  That said I have a few questions along those lines:


- Most articles I've read suggest a full backup, followed by  
incremental backups.  Is there any real reason to adopt that format  
for a backup strategy like mine, or is it reasonable to just do a  
dump 0 nightly?  I think the only reason to do just one full backup  
per 'cycle' would be to preserve system resources, as I'm sure it's  
fairly taxing on the system during dump 0 times.


- Can dump incrementally update an existing dump, or is the idea that  
a dump is a closed file and nothing except restore should ever touch it?


- How much does running a backup through gzip actually save?  Is  
taxing the system to compress the dump and the extra time it takes  
actually worth it, assuming I have enough space on my backup drive to  
support a dump 0 or two?


- Other folks dumping to a hard drive at night?  Care to share any of  
your experiences/rationale?


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


Backup sollutions

2006-06-22 Thread Andreas Wideroe Andersen

Hi,
I'm looking for a free (ports?) backup sollutions for FreeBSD 
servers. I would like to have something similare to IBM's Tivoli 
where you install a client on each server and administer the backup 
from another server with a web gui.


Are there similare sollutions found for FreeBSD?

Thanks!
Andreas

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


Backup Server

2003-11-17 Thread Darryl Hoar
Greetings,
I have an NT 4 server that I wish to back its data up to a
FreeBSD box running Samba.  The thought being that
since I cannot back all the NT 4 data up to one tape
(24GB compressed), that I could back it up every other night.
The nights it didn't go to tape, it would go to the Freebsd box.

Should I use Freebsd 4.x or 5.x ?  The disk drives in the to
be installed FreeBSD box are SCSI.  Should I use Vinum ?

Just curious about others thoughts before I start setting it up.

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


Backup Server

2003-12-26 Thread samy lancher
Hello all,
I have a 4.5 FreeBSD server. It is our Email, web and database server. I would like to 
setup a backup server so that when the main server goes down the backup server takes 
over its job.
Could some one please tell me the best way to setup a backup server and also suggest 
some good documentation.
 
Thanks in advance,
Naveen.


-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
___
[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]"


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

2004-02-23 Thread Jerry McAllister
> 
> We're currently doing a back up of a FreeBSD 4.9 (2) server by plugging a
> USB external drive in and then doing
> 
> cp /dev/ad0 /dev/da0
> 
> This takes about 30 hours, (USB 1).
> 
> Is this the best way to do it, or can someone suggest a better way.  We'd
> rather not have the server offline while we do it.

I would suggest using dump (and restore if you need something recovered)
if you can because cp may not preserve everything appropriately.

or dump | restore if you are trying to build the file system on to
the other disk.   

I wonder also about your choice of devices, but I don't know how you 
created them or mounted them.   Actually, I would use their mount names 
rather than devices anyway.  Or am I missing something here?

Using dump[/restore] won't speed anything up, but it would make sure 
it is usable later.

jerry

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


Re: backup

2004-02-23 Thread Steven N. Fettig
I think there are better ways per se, but that is usually personal 
opinion...  That being said, there are a few questions: 1) how big of an 
installation are you trying to back up? 2) is it necessary to back up 
all of the information? 3) do you have access to a faster drive (this 
one may not be relevant, as you may have no other option)?

The handbook has a good primer on backing up FreeBSD using dump, tar and 
cpio at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html
Given the slow speed of USB 1.0 and assuming you are backing up a 
relatively large amount of data, you might want to try compressing your 
backup so that it does not take up so much space and therefore is able 
to made faster.
A full dump backup of the /usr directory or slice is certainly 
advisable.  You could do a compressed dump backup via:
dump -0uan -f - /usr | gzip > /volume_to_backup_to/usr_backup_date.gz
If needed, you can then do this to all of the primary volumes/slices on 
your system (look at fstab if you aren't sure which are primary slices).
You would need to use piping to restore the backup, though and that can 
get tricky if your new system that you need to restore the data to isn't 
sized the same as the old and isn't using the same version of dump.  
Considering the potential problems associated with dump, I still prefer 
it because I have never had problems using it myself.
Another option is to use tar, but I rarely use it to make a compressed 
backup, so someone else might be more helpful with syntax.  (man tar 
would also be helpful)

HTH,
Steve Fettig
Richard Beyer wrote:

We're currently doing a back up of a FreeBSD 4.9 (2) server by plugging a
USB external drive in and then doing


cp /dev/ad0 /dev/da0



This takes about 30 hours, (USB 1).



Is this the best way to do it, or can someone suggest a better way.  We'd
rather not have the server offline while we do it.


Cheers,

Richard







___
[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]"


RE: backup

2004-02-23 Thread Eric F Crist
I've been looking for a solution for this, as well.  I want RAID level
copying, so I can just swap harddrives and be back up and running.  If I
have two identical 160GB HDD, on the same IDE cable (pri/sec), how would
I accomplish this, and roughly how long would it take?  Figure both HDD
are full.

Would I activate this by a script?

Eric F Crist
President
AdTech Integrated Systems, Inc
(612) 998-3588



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry
McAllister
Sent: Monday, February 23, 2004 5:45 PM
To: Richard Beyer
Cc: 'FreeBSD Questions List'
Subject: Re: backup


>
> We're currently doing a back up of a FreeBSD 4.9 (2) server by
> plugging a USB external drive in and then doing
>
> cp /dev/ad0 /dev/da0
>
> This takes about 30 hours, (USB 1).
>
> Is this the best way to do it, or can someone suggest a better way.
> We'd rather not have the server offline while we do it.

I would suggest using dump (and restore if you need something recovered)
if you can because cp may not preserve everything appropriately.

or dump | restore if you are trying to build the file system on to
the other disk.

I wonder also about your choice of devices, but I don't know how you
created them or mounted them.   Actually, I would use their mount names
rather than devices anyway.  Or am I missing something here?

Using dump[/restore] won't speed anything up, but it would make sure
it is usable later.

jerry

>
> Cheers,
>
> Richard
>
___
[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]"


Re: backup

2004-02-23 Thread Steven N. Fettig
Eric,

I think what you are looking for is drive mirroring (which I think is 
known as RAID 1).  Although I have never done this myself, the Handbook 
seems to give good pointers at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html

For more information on mirroring control, the man of ccdconfig:

http://www.freebsd.org/cgi/man.cgi?query=ccdconfig&sektion=8

If you are looking at backup *philosophy* in general, though, mirroring 
doesn't cover it because a catastrophic system failure would simply be 
copied to the mirrored drive (or worse, in the case of an electrical 
failure - i.e. drive, board, controller burnout - you would lose 
everything).  I only mention this because it has happened to me and I 
have been extremely thankful for my tape backups...

Steve Fettig

Eric F Crist wrote:

I've been looking for a solution for this, as well.  I want RAID level
copying, so I can just swap harddrives and be back up and running.  If I
have two identical 160GB HDD, on the same IDE cable (pri/sec), how would
I accomplish this, and roughly how long would it take?  Figure both HDD
are full.
Would I activate this by a script?

Eric F Crist
President
AdTech Integrated Systems, Inc
(612) 998-3588
 

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


Re: backup

2004-02-24 Thread Peter Schuller
> You would need to use piping to restore the backup, though and that can
> get tricky if your new system that you need to restore the data to isn't
> sized the same as the old and isn't using the same version of dump.

Woha, timeout. Are you saying 'dump' produces files in a format *not* 
guaranteed to work with 'restore' on another system if it is not running the 
exact same version of FreeBSD? Or having the same file system size?

I had always assumed - given that it's a backup tool - that the format of the 
dump was portable. 

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org

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


Re: backup

2004-02-24 Thread Jerry McAllister
> 
> > You would need to use piping to restore the backup, though and that can
> > get tricky if your new system that you need to restore the data to isn't
> > sized the same as the old and isn't using the same version of dump.
> 
> Woha, timeout. Are you saying 'dump' produces files in a format *not* 
> guaranteed to work with 'restore' on another system if it is not running the 
> exact same version of FreeBSD? Or having the same file system size?
> 
> I had always assumed - given that it's a backup tool - that the format of the 
> dump was portable. 

Generally, dump files are "portable" within the same OS but different
versions.  eg a dump in FreeBSd 3.xx can be restore in FreeBSD 4.xx, etc.
But, unfortunately dump files are often not portable between OSen,
especially vendor supported proprietary versions of UNIX.  It is also
possible that it might not be portable between OS versions, but mostly
it hasn't been changing as much lately so that isn't so much a problem
as it was a few years ago.   

dump puts a "magic number" in the dump file header and restore will refuse 
to work on files that have the wrong magic number.  The magic number is
only supposed to change if a new version of dump now generates a file
that is incompatible with previous versions, but I don't know how
precise developers have been with adhering to this imperative.  
Especially between vendors, they may have changed the magic number
just because it is a different vendor and not because the file format
is any different.   But, I don't think you will find that happening
within FreeBSD. 

The issue of not being able to restore a dump if it was piped from one
system to another comes up if the two systems are different - namely
different vendors.  If you dump a FreeBSD file system and pipe it
to a SUN OS system for writing to media, for example, then a SUN OS
version of restore may well not be able to read that dump.   You 
would need to pipe it to a restore running on a FreeBSD system.   That
works OK for full restores, but can be rather nasty for restoring just
a few files or doing an interactive restore. 

But, if you pipe a dump of a FreeBSD file system to another FreeBSD
system for writing.  Then restore on that other FreeBSD system will
almost assuredly be able to read the dump.   You might want to 
experiment a little to be clear on procedures if you plan to do this.

So, all this may sound iffy, but really, if you use dump in FreeBSD
to back up a file system, (and if the media stays good, of course)
you should have no problem restoring from that dump.

And, really, for most cases of making a backup against disk failures
(and fat finger or caffeine haze failures) that would be used to 
recover files on the same system, dump is generally the best choice.
It maintains the information in a manner that can be restored to
a full working version of the filesystem with all file information
kept intact.  The other methods do not guarantee that in all cases.

dump's main weakness is that it works on a filesystem rather than 
some subset such as a few files or a specific directory tree.  

So, if you want to make a backup of just one or two directory trees 
within a filesystem, then probably tar is your best bet.   Also, if 
you want to make something that is more guaranteed to be portable 
across OS boundaries, then tar is a good choice.   Otherwise, use dump.

jerry

> 
> -- 
> / Peter Schuller, InfiDyne Technologies HB
> 
> PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
> Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
> E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org
> 
> ___
> [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]"


Re: backup

2004-02-28 Thread anubis
On Tue, 24 Feb 2004 9:32 am, Richard Beyer wrote:
> We're currently doing a back up of a FreeBSD 4.9 (2) server by
> plugging a USB external drive in and then doing
>
>
>
> cp /dev/ad0 /dev/da0
>
>
>
> This takes about 30 hours, (USB 1).
>
>
>
> Is this the best way to do it, or can someone suggest a better way.
>  We'd rather not have the server offline while we do it.
>
>
>
> Cheers,
>
> Richard


Why not use removeable drive trays with straight pata drives?  You 
could then use rsync to only update the changes since the last 
backup.  This would solve the time problem.  

We use rsync to hourly backup about 100GB of data used by about 50 
people.  It only takes about 10-20 minutes to update all the changes.  
Of course time depends on the amount of data changed.  For the os it 
shouldnt be much at all.


With removeable drives you just need to unmount the drive then 
atacontrol detatch and you can pull it out while the machine is 
going.


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


Re: backup

2004-03-03 Thread Toomas Aas
Hi!

On Tue, 24 Feb 2004 9:32 am, Richard Beyer wrote:
> > We're currently doing a back up of a FreeBSD 4.9 (2) server by
> > plugging a USB external drive in and then doing
> > cp /dev/ad0 /dev/da0
> >
> > This takes about 30 hours, (USB 1).

To which anubis answered:

> Why not use removeable drive trays with straight pata drives?  

Few months ago I did some research on this and found that not every 
removable IDE drive bay supports hot-swapping - the ones that do are 
somewhat more expensive. I myself ended up using external FireWire 
drives, which have worked out quite well (and the speed is much better 
than USB with FreeBSD 4.9):

# camcontrol devlist
 at scbus0 target 1 lun 0 (da1,pass1)
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* If you leave me, can i come too?

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


Re: backup

2004-03-03 Thread Lucas Holt
On Mar 3, 2004, at 8:59 AM, Toomas Aas wrote:

Hi!

On Tue, 24 Feb 2004 9:32 am, Richard Beyer wrote:
We're currently doing a back up of a FreeBSD 4.9 (2) server by
plugging a USB external drive in and then doing
cp /dev/ad0 /dev/da0
This takes about 30 hours, (USB 1).


Could you get a USB 2 PCI card?  Presuming the drive and freebsd 
support it, i would think it could make things a bit faster.  USB2 is 
faster than firewire 400 which is what most pcs have.  Apple just 
starting shipping Firewire 800 last year (its their standard).

Lucas Holt
[EMAIL PROTECTED]

FoolishGames.com  (Jewel Fan Site)
JustJournal.com (Free blogging)
'I try to think but nothing happens'
-- Homer Jay Simpson
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup

2004-03-03 Thread Toomas Aas
> From:  Lucas Holt 
> Date:  Wed, 3 Mar 2004 09:14:57 -0500
 
> On Mar 3, 2004, at 8:59 AM, Toomas Aas wrote:
> 
> > Hi!
> >
> > On Tue, 24 Feb 2004 9:32 am, Richard Beyer wrote:
> >>> We're currently doing a back up of a FreeBSD 4.9 (2) server by
> >>> plugging a USB external drive in and then doing
> >>> cp /dev/ad0 /dev/da0
> >>>
> >>> This takes about 30 hours, (USB 1).

> Could you get a USB 2 PCI card?   

AFAIK FreeBSD 4.9 doesn't support USB 2.0. That's why I went for FW.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Why is the third hand on a watch called a second hand?

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


Re: backup

2004-03-04 Thread Anubis
Toomas Aas wrote:

Hi!

On Tue, 24 Feb 2004 9:32 am, Richard Beyer wrote:
 

We're currently doing a back up of a FreeBSD 4.9 (2) server by
plugging a USB external drive in and then doing
cp /dev/ad0 /dev/da0
This takes about 30 hours, (USB 1).
 

To which anubis answered:

 

Why not use removeable drive trays with straight pata drives?  
   

Few months ago I did some research on this and found that not every 
removable IDE drive bay supports hot-swapping - the ones that do are 
somewhat more expensive. I myself ended up using external FireWire 
drives, which have worked out quite well (and the speed is much better 
than USB with FreeBSD 4.9):

Toomas Aas wrote:

 

To which anubis answered:

   

Why not use removeable drive trays with straight pata drives?  
 

Few months ago I did some research on this and found that not every 
removable IDE drive bay supports hot-swapping - the ones that do are 
somewhat more expensive. I myself ended up using external FireWire 
drives, which have worked out quite well (and the speed is much better 
than USB with FreeBSD 4.9):

   

I am using removeable drives and trays.  I am using the plain jane 
vipower  ones as seen here.
http://www.vipower.com/product/MobileRack/3fan_mobile_rack/vp_70/vp_7010ls3fu.htm
They are connected to a promise 2 channel ide card as seen here
http://www.promise.com/product/product_detail_eng.asp?productId=11&familyId=3
The drives are 200GB seagates.

Neither of these is rated as hot swappable as far as I know.  We are 
using them as "hot swappable".  
To us this means that we unmount the drive, atacontrol detatch, power 
off then yank out without
powering down the server.

We have been using this as a backup method successfully for over a 
month now in production and
before that for a couple of months in testing.  We havent noticed any 
problems so far.  
I hesitate in calling it a success at this stage.  Ask me in 2 months 
time when I see how the drives handle
being lugged off site daily.

When I looked at it I took the hot swapping features to be needed only 
for windows.  
If you are worried about burning out something use an ide card like we 
are so if smoke comes out
you can bin it and not the motherboard.

The cost wasnt that great.  In Aussie dollars the trays were $30, the 
card about $60.
The machine is currently running 5.1.



 



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


Backup Solutions

2003-10-14 Thread Stephane Raimbault
Hi,

I am curious as to what people using FreeBSD use for a Backup Solution.  Are there any 
Comercial software available for Tape Backup Solutions that run well on FreeBSD?

I'm looking at using a Dell PowerVault 110T LTO tape drive and was looking for 
software to utilize to backup the 10 servers and growing in my server farm.

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


Tape Backup

2002-12-14 Thread Peter Erickson
I am running Freebsd 4.6 and my dds-2 tape backup drive just died on me. I am 
interested in moving up to a bigger capacity drive so does anyone have any 
recommendations? I am not interested in anything high end, this is just for my system 
at home. I was looking at the dds-3 drives, but before i went out and bought one, I 
would like opinions and or recommendations. Thanks in advance.

-- 
Peter Erickson

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: backup

2003-01-20 Thread Bill Moran
Kenzo wrote:

I'm trying to figure out the best way to backup my server.
I don't have a CD burner, tape drive or other media to write backup to.
So what I want to do, is connect to my other comp with cd burner and that
runs on WinXP.
I was thinking of using shlight since It seems to work good.
In Webmin under backup you can issue a command to perform before and after
the backup.
I tried to set it up to mount the windows command before the backup and
umount it after, but that didn't work.
I think the kernel didn't like that.
If I do it manually it works fine.


Usually this is because you haven't specified the full path to the mount
command.  When you type the command at a shell prompt, you have a search
path that is searched for the command.  The webmin module probably doesn't
do this, so you'll have to enter the full path. i.e.:
/sbin/mount
ass opposed to just "mount"
You can use the "whereis" command to find the full path to the particular
command you're trying to run. i.e.
whereis mount
will tell you what directory 'mount' is in.


Now is there another/better way of doing what I want to do?
I was also thinking about using Cron to issue the commands.
A script might do it, but I don't know anything about writing sripts.


It's not as hard as you might think.  For example, the following script
is a good template for what you're trying to do:

#!/bin/sh
/sbin/mount_nfs 172.16.0.1:/remote/drive /mnt/temp
/bin/cp -Rp /path/to/backup /mnt/tmp/.
/sbin/umount /mnt/temp

Of course, you'll want to substitute the mount command that you need
(which may be at a different location) and the specific stuff you
want to back up, etc.

--
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



Re: backup

2003-01-20 Thread Kenzo
I tried to include the whole path.
ie:
If I do it from the command line
shlight //remote_computer/dir /NT -U usename -P password
Using port 1473 for NFS
cd /NT
ls
then I get all the listing.

When I enter this in webmin I get some kernel errors.


- Original Message -
From: "Bill Moran" <[EMAIL PROTECTED]>
To: "Kenzo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 10:26 AM
Subject: Re: backup


> Kenzo wrote:
> > I'm trying to figure out the best way to backup my server.
> > I don't have a CD burner, tape drive or other media to write backup to.
> > So what I want to do, is connect to my other comp with cd burner and
that
> > runs on WinXP.
> > I was thinking of using shlight since It seems to work good.
> > In Webmin under backup you can issue a command to perform before and
after
> > the backup.
> > I tried to set it up to mount the windows command before the backup and
> > umount it after, but that didn't work.
> > I think the kernel didn't like that.
> > If I do it manually it works fine.
>
> Usually this is because you haven't specified the full path to the mount
> command.  When you type the command at a shell prompt, you have a search
> path that is searched for the command.  The webmin module probably doesn't
> do this, so you'll have to enter the full path. i.e.:
> /sbin/mount
> ass opposed to just "mount"
> You can use the "whereis" command to find the full path to the particular
> command you're trying to run. i.e.
> whereis mount
> will tell you what directory 'mount' is in.
>
> > Now is there another/better way of doing what I want to do?
> > I was also thinking about using Cron to issue the commands.
> > A script might do it, but I don't know anything about writing sripts.
>
> It's not as hard as you might think.  For example, the following script
> is a good template for what you're trying to do:
>
> #!/bin/sh
> /sbin/mount_nfs 172.16.0.1:/remote/drive /mnt/temp
> /bin/cp -Rp /path/to/backup /mnt/tmp/.
> /sbin/umount /mnt/temp
>
> Of course, you'll want to substitute the mount command that you need
> (which may be at a different location) and the specific stuff you
> want to back up, etc.
>
> --
> 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



Re: backup

2003-01-20 Thread Bill Moran
Kenzo wrote:

I tried to include the whole path.
ie:
If I do it from the command line
shlight //remote_computer/dir /NT -U usename -P password
Using port 1473 for NFS
cd /NT
ls
then I get all the listing.

When I enter this in webmin I get some kernel errors.


What are the errors?

And "shlight" does not include the path to shlight.
At a shell prompt, enter "whereis shlight"  Whereever it tells you
it is, you'll need that full path specified, for example:
whereis shlight
shlight: /usr/local/bin
Thus you'll need to replace your command above with:
/usr/local/bin/shlight //remote_computer/dir /NT -U usename -P password

DO NOT USE /usr/local/bin.  I don't know where the shlight binary is
installed, so you _must_ do the "whereis" step above to locate it
and use the result of that command to setup your script.


- Original Message -
From: "Bill Moran" <[EMAIL PROTECTED]>

Kenzo wrote:


I'm trying to figure out the best way to backup my server.
I don't have a CD burner, tape drive or other media to write backup to.
So what I want to do, is connect to my other comp with cd burner and



that


runs on WinXP.
I was thinking of using shlight since It seems to work good.
In Webmin under backup you can issue a command to perform before and



after


the backup.
I tried to set it up to mount the windows command before the backup and
umount it after, but that didn't work.
I think the kernel didn't like that.
If I do it manually it works fine.


Usually this is because you haven't specified the full path to the mount
command.  When you type the command at a shell prompt, you have a search
path that is searched for the command.  The webmin module probably doesn't
do this, so you'll have to enter the full path. i.e.:
/sbin/mount
ass opposed to just "mount"
You can use the "whereis" command to find the full path to the particular
command you're trying to run. i.e.
whereis mount
will tell you what directory 'mount' is in.


Now is there another/better way of doing what I want to do?
I was also thinking about using Cron to issue the commands.
A script might do it, but I don't know anything about writing sripts.


It's not as hard as you might think.  For example, the following script
is a good template for what you're trying to do:

#!/bin/sh
/sbin/mount_nfs 172.16.0.1:/remote/drive /mnt/temp
/bin/cp -Rp /path/to/backup /mnt/tmp/.
/sbin/umount /mnt/temp

Of course, you'll want to substitute the mount command that you need
(which may be at a different location) and the specific stuff you
want to back up, etc.


--
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



Backup solutions

2003-03-31 Thread Erik Gustafson
Hello!

I'm supposed to setup a server with the following services:
Apache
MySQL
Email (smtp,pop,webmail)
DNS
ipfw
Filesharing with Samba

For this I have two identical equipped PC's, one DAT-writer and one additional
large harddisk. The load on the server will not be high so I will only
need the first PC to handle these services.

The databases for MySQL are small (about 30Mb)
/var/mail will be big (about 3Gb)
The websites are small (about 50-100Mb)
I expect the files to share with samba wont take more than 5Gb

Now to my questions:
1) I want daily backups of this, at lest mail and mysql must be backed up
daily. The files shared with samba are not that important so a weekly
backup is enough. It is not possible for me to change the tape in the
DAT-writer more than one time per week.

2) Because I have two computers it would be nice if I could use the
second one for redundancy so I can take any of the computers down and
do a 'make world'.


So. How would you accomplish this? 
My idea is to use pdumpfs to dump everything to the additional disk
every day, and as extra security compress and dump mail and databases
to DAT every week. In my solution I dont use the second computer at
all, I have no idea aout how to accomplish redundancy.

All ideas and tips are welcome!


 //Erik

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


Backup Tar

2003-06-27 Thread DanB
If I  tar my  files on freebsd box then FTP them to a window 98 box can
I use that file to reinstall on a new Freebsd box?

Dan

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


Re: backup

2003-02-12 Thread Bill Moran
Brian Henning wrote:

Hello-
I would like to backup my cvs repository in case my system goes down or incase i
want to move the repository. can i tar up the files in the root directory and
save it on a cd?


Yes, I do this all the time.  You can treat your CVS repository just like any other
tree of files for backup purposes.


I would also like to back up my mysql databases for the same reasons. can i tar
those up for later use?


You can, but you should make sure that the MySQL server is shut down during backup
or your database files could be in the middle of an update while you're backing up.

Look in the MySQL docs for alternate methods (such as mysqldump) that don't have
you backing up data while it's in use.

--
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



Re: backup

2003-02-12 Thread Daxbert
> Hello-
> I would like to backup my cvs repository in case my system goes down or incase i
> want to move the repository. can i tar up the files in the root directory and
> save it on a cd?
> 
> I would also like to back up my mysql databases for the same reasons. can i tar
> those up for later use?
> 

Not sure about cvs... However, for mysql, you should use mysqldump.

# mysqldump -u {username} -p{password} {database} > ./{database}.`date 
+%Y%m%d-%H%M`.sql

This will give you a nice datestamped sql script 
to rebuild your database.  

However, this will only contain your database 
information and structure. You will also need a backup 
of the mysql database (users, permissions, etc).

# mysqldump -u root -p mysql > ./mysql.`date +%Y%m%d-%H%M`.sql

A final option is too just backup all of the databases in one shot.

# mysqldump -u root -p --all-databases > ./FULL.`date 
+%Y%m%d-%H%M`.sql

--daxbert

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: backup

2003-02-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-02-12 15:01:27 -0500:
> Brian Henning wrote:
> >I would also like to back up my mysql databases for the same reasons.
> >can i tar those up for later use?
> 
> You can, but you should make sure that the MySQL server is shut down
> during backup or your database files could be in the middle of an
> update while you're backing up.

see ${PREFIX}/bin/mysqlhotcopy

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Backup Solution

2003-03-11 Thread Wayne Swart
Hi everyone

I am looking for a centralized backup solution for FreeBSD. It must be
able to backup to harddrive, rather than to a tape drive, and must have
support for FreeBSD/Linux and Windows 2000 clients.

Does anyone have any suggestions ?

Kind Regards

Wayne Swart

Network Aministrator
MICS Online
TEL: +2712 661 
FAX: +2712 661 9996
mailto:[EMAIL PROTECTED]

First they ignore you, then they laugh at you, then they fight you, then
you win.
--Mahatma Gandhi

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Backup Scripts

2002-07-23 Thread Michelle Weeks

I am new to scripting and am trying to use the below script I found to 
run backups of our FreeBSD 4.5 server, but I keep getting the error:

Level-backup.sh Backup Tue Jul 23 21:04:22 PDT 2002
Error: Level-backup.sh unknown

Since I am new at this, I am probably missing something very obvious.  I 
would greatly appreciate any help or advice as to where I can find more 
info. on creating backup scripts for FreeBSD.


Here is the script I am using:


# Variables
EMAILTO=backup
DESTFILE=/dev/nrsa0
BACKUPFILES="/var /usr/home"
BACKUPDIR=${HOME}/backup
LEVEL=${0}

# Load backup functions
cd ${BACKUPDIR}
. backup-functions

# Do the backup
tar_backup

# Test the backup for errors
tar_verify

# Email the backup report
mail_report

# Done
exit

and here is the .backup-functions file for the shell script:

# Variables
L0DATESTAMP="${BACKUPDIR}/.level0_datestamp"
NOW=`date`

# tar_backup function: does the archiving
tar_backup ()
{
   echo "Level-${LEVEL} Backup ${NOW}"
   if [ "${LEVEL}" = "0" ]; then
 # make Level-0 datestamp
 echo ${NOW} > ${L0DATESTAMP}
 # Level-0 backup
 tar --create --verbose \
 --file ${DESTFILE} \
 --blocking-factor 126 \
 --label "Level-${LEVEL} Backup ${NOW}" \
 ${BACKUPFILES}
   elif [ "${LEVEL}" = "1" ]; then
     # get last Level-0 datestamp
 LAST=`cat ${L0DATESTAMP}`
 # Level-1 backup
 tar --create --verbose \
 --file ${DESTFILE} \
 --blocking-factor 126 \
 --after-date "${LAST}" \
 --label "Level-${LEVEL} Backup from ${LAST} to ${NOW}" \
 ${BACKUPFILES}
   else
 # Backup level error
 echo "Error: Level-${LEVEL} unknown"
 exit
   fi
   echo "Level-${LEVEL} Backup END"
}

# tar_verify function: test the archive for errors
tar_verify ()
{
   echo "Level-${LEVEL} Backup Verify ${NOW}"
   # Backup verify test
   tar --list --verbose \
   --file ${DESTFILE} \
   --blocking-factor 126
   echo "Level-${LEVEL} Backup Verify END"
}

# mail_report function: sends backup report
mail_report ()
{
   # Email backup report
   mail -s "Level-${LEVEL} Backup" "${EMAILTO}" << EOF

###
Level-${LEVEL} Backup
###

Host:  ${HOSTNAME}
Files: ${BACKUPFILES}

Destination: ${DESTFILE}

###
Started:   ${NOW}
Completed: `date`
###

EOF
}


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



What to backup

2004-09-15 Thread Curtis Vaughan
I have a question about what exactly I should backup on my 5.3 FreeBSD 
Server. So far I have chosen the following directories for full backup. 
 But perhaps some is overkill.

/etc
/boot
/home
/var/log
/usr/ports
/root
/usr/local
/usr/src
Curtis
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup/Restore

2004-09-30 Thread Richard Lynch
Brian McCann wrote:
>  Hi all...I'm having a conceptual problem I can't get around and
> was hoping someone can change my focus here.  I've been backing up
> roughly 6-8 million small files (roughly 2-4k each) using dump, but
> restores take forever due to the huge number of files and directories.
>  Luckily, I haven't had to restore for an emergency yet...but if I
> need to, I'm kinda stuck.  I've looked at distributed file systems
> like CODA, but the number of files I have to deal with will make it
> choke.  Can anyone offer any suggestions?  I've pondered running
> rsync, but am very worried about how long that will take...

Do the files change a lot, or is it more like a few files added/changed
every day, and the bulk don't change?

If it's the latter, you could maybe get best performance from something
like Subversion (a CVS derivative).

Though I suspect rsync would also do well in that case.

If a ton of those files are changing all the time, try doing a test on
creating a tarball and then backing up the tarball.  That may be a simple
managable solution.  There are probably other more complex solutions of
which I am ignorant :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

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


Re: Backup/Restore

2004-09-30 Thread Christopher Nehren
On Thu, 2004-09-30 at 13:59 -0700, Richard Lynch wrote:
> If it's the latter, you could maybe get best performance from something
> like Subversion (a CVS derivative).

Just a minor correction: Subversion is *not* a derivative of CVS. It
does not share code with CVS, it is not based on the same code, and it
is not related to CVS other than that it covers the same problem domain.
If it were a derivative of CVS, then it'd have to be licensed under the
GPL. Thankfully, it's not a derivative, and thus it's released under a
much more palatable (Apache, which is a modified BSD) license.


signature.asc
Description: This is a digitally signed message part


Re: Backup/Restore

2004-10-01 Thread Brian McCann
I have the case where a new file is created about every second or two,
nothing gets changed, but files get deleted occasionally (it's a mail
server).  I thought of using tar, but it would be just as slow as dump
I would think.  I've thought of breaking it up into chunks, but that
still doesn't solve my speed issue...i'm beginning to consider using
dd since it reads the actual disk bits, and just hope that a)I don't
ever need one file and b) the system I restore to has at least or more
space then the original server.  Any other thoughts anyone?

Thanks again,
--Brian


On Thu, 30 Sep 2004 13:59:05 -0700 (PDT), Richard Lynch <[EMAIL PROTECTED]> wrote:
> 
> 
> Brian McCann wrote:
> >  Hi all...I'm having a conceptual problem I can't get around and
> > was hoping someone can change my focus here.  I've been backing up
> > roughly 6-8 million small files (roughly 2-4k each) using dump, but
> > restores take forever due to the huge number of files and directories.
> >  Luckily, I haven't had to restore for an emergency yet...but if I
> > need to, I'm kinda stuck.  I've looked at distributed file systems
> > like CODA, but the number of files I have to deal with will make it
> > choke.  Can anyone offer any suggestions?  I've pondered running
> > rsync, but am very worried about how long that will take...
> 
> Do the files change a lot, or is it more like a few files added/changed
> every day, and the bulk don't change?
> 
> If it's the latter, you could maybe get best performance from something
> like Subversion (a CVS derivative).
> 
> Though I suspect rsync would also do well in that case.
> 
> If a ton of those files are changing all the time, try doing a test on
> creating a tarball and then backing up the tarball.  That may be a simple
> managable solution.  There are probably other more complex solutions of
> which I am ignorant :-)
> 
> --
> Like Music?
> http://l-i-e.com/artists.htm
> 
> ___
> [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]"


Re: Backup/Restore

2004-10-01 Thread Jan Grant
On Fri, 1 Oct 2004, Brian McCann wrote:

> On Thu, 30 Sep 2004 13:59:05 -0700 (PDT), Richard Lynch <[EMAIL PROTECTED]> wrote:
> > 
> > Brian McCann wrote:
> > >  Hi all...I'm having a conceptual problem I can't get around and
> > > was hoping someone can change my focus here.  I've been backing up
> > > roughly 6-8 million small files (roughly 2-4k each) using dump, but
> > > restores take forever due to the huge number of files and directories.
> > >  Luckily, I haven't had to restore for an emergency yet...but if I
> > > need to, I'm kinda stuck.  I've looked at distributed file systems
> > > like CODA, but the number of files I have to deal with will make it
> > > choke.  Can anyone offer any suggestions?  I've pondered running
> > > rsync, but am very worried about how long that will take...
> > 
> > Do the files change a lot, or is it more like a few files added/changed
> > every day, and the bulk don't change?
> > 
> > If it's the latter, you could maybe get best performance from something
> > like Subversion (a CVS derivative).
> > 
> > Though I suspect rsync would also do well in that case.
> > 
> > If a ton of those files are changing all the time, try doing a test on
> > creating a tarball and then backing up the tarball.  That may be a simple
> > managable solution.  There are probably other more complex solutions of
> > which I am ignorant :-)
>
> I have the case where a new file is created about every second or two,
> nothing gets changed, but files get deleted occasionally (it's a mail
> server).  I thought of using tar, but it would be just as slow as dump
> I would think.  I've thought of breaking it up into chunks, but that
> still doesn't solve my speed issue...i'm beginning to consider using
> dd since it reads the actual disk bits, and just hope that a)I don't
> ever need one file and b) the system I restore to has at least or more
> space then the original server.  Any other thoughts anyone?

You might want to experiment with something like rsync to maintain a 
"live" (ie, on a FS) second copy. If you do this don't be put off by the 
initial rsync time (which may well take ages - tar or dump/restore may 
be faster to get the second copy in place initially). Rsync over such a 
large filesystem may take quite a while but the best bet is to actually 
try it to see if it meets your needs.

Obviously a restore of a mail repository is a pretty awful thing to have 
to do. Amongst other things, users can find the "ressurrection" of 
deleted mails to be a real pain. You might want to see if your mail repo 
can generate some kind of replay log - if so, this might be the best 
route for minimising the amount of time needed to synchronise mailstores 
and to get the closest fidelity out of the copy.

Breaking your mailstore into separate chunks may well help. Yes, the 
total time for a dump/restore may be close to your current state of 
play, but if you can split the partitions between machines then you have 
the option to perform these in parallel.

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
"...perl has been dead for more than 4 years." - Abigail in the Monastery
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup/Restore

2004-10-02 Thread Brian McCann
We actually came up with another solution, for those of you who
care...we are going to rewrite part of the mail handler so that it
writes to multiple file systems on multiple servers and to a log
indicating if it failed on any of them.  When one comes up, a client
will check the log to see what it missed.

Thanks again everyone!
--Brian


On Fri, 1 Oct 2004 21:35:06 +0100 (BST), Jan Grant
<[EMAIL PROTECTED]> wrote:
> On Fri, 1 Oct 2004, Brian McCann wrote:
> 
> > On Thu, 30 Sep 2004 13:59:05 -0700 (PDT), Richard Lynch <[EMAIL PROTECTED]> wrote:
> > >
> > > Brian McCann wrote:
> > > >  Hi all...I'm having a conceptual problem I can't get around and
> > > > was hoping someone can change my focus here.  I've been backing up
> > > > roughly 6-8 million small files (roughly 2-4k each) using dump, but
> > > > restores take forever due to the huge number of files and directories.
> > > >  Luckily, I haven't had to restore for an emergency yet...but if I
> > > > need to, I'm kinda stuck.  I've looked at distributed file systems
> > > > like CODA, but the number of files I have to deal with will make it
> > > > choke.  Can anyone offer any suggestions?  I've pondered running
> > > > rsync, but am very worried about how long that will take...
> > >
> > > Do the files change a lot, or is it more like a few files added/changed
> > > every day, and the bulk don't change?
> > >
> > > If it's the latter, you could maybe get best performance from something
> > > like Subversion (a CVS derivative).
> > >
> > > Though I suspect rsync would also do well in that case.
> > >
> > > If a ton of those files are changing all the time, try doing a test on
> > > creating a tarball and then backing up the tarball.  That may be a simple
> > > managable solution.  There are probably other more complex solutions of
> > > which I am ignorant :-)
> >
> > I have the case where a new file is created about every second or two,
> > nothing gets changed, but files get deleted occasionally (it's a mail
> > server).  I thought of using tar, but it would be just as slow as dump
> > I would think.  I've thought of breaking it up into chunks, but that
> > still doesn't solve my speed issue...i'm beginning to consider using
> > dd since it reads the actual disk bits, and just hope that a)I don't
> > ever need one file and b) the system I restore to has at least or more
> > space then the original server.  Any other thoughts anyone?
> 
> You might want to experiment with something like rsync to maintain a
> "live" (ie, on a FS) second copy. If you do this don't be put off by the
> initial rsync time (which may well take ages - tar or dump/restore may
> be faster to get the second copy in place initially). Rsync over such a
> large filesystem may take quite a while but the best bet is to actually
> try it to see if it meets your needs.
> 
> Obviously a restore of a mail repository is a pretty awful thing to have
> to do. Amongst other things, users can find the "ressurrection" of
> deleted mails to be a real pain. You might want to see if your mail repo
> can generate some kind of replay log - if so, this might be the best
> route for minimising the amount of time needed to synchronise mailstores
> and to get the closest fidelity out of the copy.
> 
> Breaking your mailstore into separate chunks may well help. Yes, the
> total time for a dump/restore may be close to your current state of
> play, but if you can split the partitions between machines then you have
> the option to perform these in parallel.
> 
> --
> jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
> Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
> "...perl has been dead for more than 4 years." - Abigail in the Monastery
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


backup msdos partition

2004-10-05 Thread hal
What is the best way to back up an msdos partition (FStype msdos)
on my FreeBSD 4.7 system?
hal
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-30 Thread Martin Hepworth
Hi

On 10/30/05, Csaba Henk <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> We plan to set up a backup server.
>
> While the basic backup procedure is clear -- use some archiving utility
> like dump, tar, or cpio and send data to the backup server via ssh or a
> network mount -- there are many details which are unclear for me.
>
> The two biggest problems are:
>
> 1) What parts are to be backed up? If I backup the whole system, the
> backup disk will get full soon. You could say it's not necessary, and
> that only the valueable data should be backed up (and not those parts
> which are easy to re-create by means of a new installation). But, say,
> someone breaks into the machince. How could I reliably find out the
> Achilles heel she used to get in if I don't have a complete system
> backup? Or if she has a backdoor left behind?


Depends on what the risk you trying to mitigate with backup. Think of the
problems and how you would get around them. There are file consistency utils
you can run to see if root-kits etc have been installed.

2) How to schedule backups? I guess services should stop for the backup
> period as the backup could be unreliable or inconsistent if disk/file
> writes were going on during backup. It sounds as if I should drop to
> single user mode. Or is there a less drastic approach? And if I dropped
> to single user mode, I would lose control over the box for that period,
> as the box is accessed via ssh and sshd is also stopped in single user
> mode -- this sounds scary...


With FreeBSD 5.x and later you can snapshop the filesystem then use a
special 'dump' to backup that snapshot to the backup machine.

have a look at amanda and bacula for how they handle this and do some
research on different backup strategies and their risks and benfits wrt to
Unix systems - theres lots out there..

--
Martin


TYA.
>
> --
> Csaba Henk
>
> My sense of humour is often too subtle to cope with getting smileyd.
> Please don't take it personal.
> ___
> 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 strategies

2005-10-30 Thread Eric Schuele

Martin Hepworth wrote:

Hi

On 10/30/05, Csaba Henk <[EMAIL PROTECTED]> wrote:


Hi!

We plan to set up a backup server.

While the basic backup procedure is clear -- use some archiving utility
like dump, tar, or cpio and send data to the backup server via ssh or a
network mount -- there are many details which are unclear for me.

The two biggest problems are:

1) What parts are to be backed up? If I backup the whole system, the
backup disk will get full soon. You could say it's not necessary, and
that only the valueable data should be backed up (and not those parts
which are easy to re-create by means of a new installation). But, say,
someone breaks into the machince. How could I reliably find out the
Achilles heel she used to get in if I don't have a complete system
backup? Or if she has a backdoor left behind?




Depends on what the risk you trying to mitigate with backup. Think of the
problems and how you would get around them. There are file consistency utils
you can run to see if root-kits etc have been installed.

2) How to schedule backups? I guess services should stop for the backup


period as the backup could be unreliable or inconsistent if disk/file
writes were going on during backup. It sounds as if I should drop to
single user mode. Or is there a less drastic approach? And if I dropped
to single user mode, I would lose control over the box for that period,
as the box is accessed via ssh and sshd is also stopped in single user
mode -- this sounds scary...




With FreeBSD 5.x and later you can snapshop the filesystem then use a
special 'dump' to backup that snapshot to the backup machine.



dump(8) will create a snapshot of a live filesystem, dump the snapshot 
and then remove the snapshot, if given the correct flags ('-L').



have a look at amanda and bacula for how they handle this and do some
research on different backup strategies and their risks and benfits wrt to
Unix systems - theres lots out there..

--
Martin


TYA.


--
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.
___
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]"




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


Re: backup strategies

2005-10-30 Thread albi
On Sun, 30 Oct 2005 14:49:02 +0100
Csaba Henk <[EMAIL PROTECTED]> wrote:

> We plan to set up a backup server.
-- cut --
> 1) What parts are to be backed up? If I backup the whole system, the
> backup disk will get full soon.

incremental backups via a script called from cron sounds good,
you might consider trying rdiff-backup

http://www.nongnu.org/rdiff-backup/
http://www.nongnu.org/rdiff-backup/examples.html

-- 
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-30 Thread Winelfred G. Pasamba
BackupPC
 http://www.google.com/search?hl=en&lr=&newwindow=1&q=backuppc+freebsd


 On 10/31/05, albi <[EMAIL PROTECTED]> wrote:
>
> On Sun, 30 Oct 2005 14:49:02 +0100
> Csaba Henk <[EMAIL PROTECTED]> wrote:
>
> > We plan to set up a backup server.
> -- cut --
> > 1) What parts are to be backed up? If I backup the whole system, the
> > backup disk will get full soon.
>
> incremental backups via a script called from cron sounds good,
> you might consider trying rdiff-backup
>
> http://www.nongnu.org/rdiff-backup/
> http://www.nongnu.org/rdiff-backup/examples.html
>
> --
> grtjs, albi
> gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>



--
Seek ye first the kingdom of God and all these things shall be added unto
you.

Winelfred G. Pasamba
Adventist University of the Philippines
Computer Science Department, AUP Online Information System
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-31 Thread Csaba Henk
Thanks for all the tips and answers, I will consider the mentioned
alternatives.

Yet I have one more question...

On Sun, Oct 30, 2005 at 01:22:35PM -0600, Eric Schuele wrote:
> dump(8) will create a snapshot of a live filesystem, dump the snapshot 
> and then remove the snapshot, if given the correct flags ('-L').

Can even a full bakcup done safely on a live filesystem by "dump -L"?

As dump(8) says when explaining the -L flag:

 To obtain a consistent dump image, dump takes a snapshot of the file
 system in the .snap directory in the root of the file system being
 dumped and then does a dump of the snapshot.

I don't see how the temporary snapshot can improve the
reliability/consistency/correctness of the dump. Could someone explain
this?

-- 
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.

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


Re: backup strategies

2005-10-31 Thread Eric Schuele

Csaba Henk wrote:

Thanks for all the tips and answers, I will consider the mentioned
alternatives.

Yet I have one more question...

On Sun, Oct 30, 2005 at 01:22:35PM -0600, Eric Schuele wrote:

dump(8) will create a snapshot of a live filesystem, dump the snapshot 
and then remove the snapshot, if given the correct flags ('-L').



Can even a full bakcup done safely on a live filesystem by "dump -L"?

As dump(8) says when explaining the -L flag:

 To obtain a consistent dump image, dump takes a snapshot of the file
 system in the .snap directory in the root of the file system being
 dumped and then does a dump of the snapshot.

I don't see how the temporary snapshot can improve the
reliability/consistency/correctness of the dump. Could someone explain
this?



How do snapshots work and how do they provide the consistency necessary 
for a dump?


(Well, I'm probably not the best one to answer this, but I'll take a swing.)

Basically, when taking a snapshot... any new activity on the filesystem 
in question is suspended.  All presently executing syscalls are allowed 
to finish.  The filesystem is synchronized as if unmounting, and then a 
snapshot file is created.  At this point filesystem activity is resumed.


The real magic is in the snapshot file.  The file is a snapshot of the 
filesystem metadata at the time the snapshot was taken.  From this point 
on... as long as the snapshot exists on your machine... it tracks the 
changes that occur within the filesystem from the time you took the 
snapshot to the present.  What this means is the snapshot file holds 
pointers to the data on your filesystem.  As that data changes (since 
the snapshot), the old data gets claimed by the snapshot... and the new 
data is written to disk.  Same with deleting data... the deleted data 
gets claimed by the snapshot and the filesystem looses it.  Any 
unchanged data is simply referred to (in the snapshot file) as pointers 
to the existing data on the actual filesystem, and any new data need not 
be mentioned in the snapshot file.


So the snapshot can be taken very quickly... and requires a bit of 
maintenance by the OS during its lifetime.  But if you create it, dump 
it and remove it.  The OS need not worry about it for long.


SoftUpdates are required on the filesystem.

HTH.

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


Re: backup strategies

2005-10-31 Thread Csaba Henk
On Mon, Oct 31, 2005 at 09:40:16AM -0600, Eric Schuele wrote:
> How do snapshots work and how do they provide the consistency necessary 
> for a dump?
[...]
> 
> SoftUpdates are required on the filesystem.

This sounds beautiful. I am amazed. I knew of softupdates, but they were
always a shady corner of my understanding of BSD.

So live fs dumping is based on the great hackery of softupdates. Fine,
but in this case... shouldn't the man page make a mention of it?

It just says that -L is ignored in case of unmounted/ro mounted fs-s,
or if there is no proper .snap dir. But it doesn't say that it will be
ignored if softupdates is not turned on...

Going a bit off: which OS-es provide this live snapshot dumping
capability? FreeBSD? FreeBSD >= 5.x ? *BSD ? Maybe something else?
(AFAIK, softupdates is supported also in other members of the BSD
family, yet the NetBSD dump manpage didn't have such a -L flag...)

-- 
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-31 Thread Eric Schuele

Csaba Henk wrote:

On Mon, Oct 31, 2005 at 09:40:16AM -0600, Eric Schuele wrote:

How do snapshots work and how do they provide the consistency necessary 
for a dump?


[...]


SoftUpdates are required on the filesystem.



This sounds beautiful. I am amazed. I knew of softupdates, but they were
always a shady corner of my understanding of BSD.

So live fs dumping is based on the great hackery of softupdates. Fine,
but in this case... shouldn't the man page make a mention of it?


The online manual mentions it in 16.13.  Wouldn't hurt for it to be in 
the man page as well.




It just says that -L is ignored in case of unmounted/ro mounted fs-s,
or if there is no proper .snap dir. But it doesn't say that it will be
ignored if softupdates is not turned on...

Going a bit off: which OS-es provide this live snapshot dumping
capability? FreeBSD? FreeBSD >= 5.x ? *BSD ? Maybe something else?


AFAIK FreeBSD 5.0+. Other *BSD as well, i believe... but someone else 
would have to answer that.



(AFAIK, softupdates is supported also in other members of the BSD
family, yet the NetBSD dump manpage didn't have such a -L flag...)




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


Re: backup strategies

2005-10-31 Thread Csaba Henk
On Mon, Oct 31, 2005 at 10:32:02AM -0600, Eric Schuele wrote:
> The online manual mentions it in 16.13.  Wouldn't hurt for it to be in 
> the man page as well.

Oh, yeah, thanks.

This makes things clear. I missed this somehow.

> AFAIK FreeBSD 5.0+. Other *BSD as well, i believe... but someone else 
> would have to answer that.
> 
> >(AFAIK, softupdates is supported also in other members of the BSD
> >family, yet the NetBSD dump manpage didn't have such a -L flag...)

OK, as I understand now, softupdates might be available for other BSD-s,
but snapshotting is not a "free bonus" which comes with softupdates, but
a new innovation based on that... and is a true FBSD innovation. So I'd
guess it's still a unique thing.

-- 
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-31 Thread Paul Mather
On Mon, 31 Oct 2005 18:59:21 +0100, Csaba Henk <[EMAIL PROTECTED]> wrote:

> On Mon, Oct 31, 2005 at 10:32:02AM -0600, Eric Schuele wrote:
> > The online manual mentions it in 16.13.  Wouldn't hurt for it to be
> in 
> > the man page as well.
> 
> Oh, yeah, thanks.
> 
> This makes things clear. I missed this somehow.
> 
> > AFAIK FreeBSD 5.0+. Other *BSD as well, i believe... but someone
> else 
> > would have to answer that.
> > 
> > >(AFAIK, softupdates is supported also in other members of the BSD
> > >family, yet the NetBSD dump manpage didn't have such a -L flag...)
> 
> OK, as I understand now, softupdates might be available for other
> BSD-s,
> but snapshotting is not a "free bonus" which comes with softupdates,
> but
> a new innovation based on that... and is a true FBSD innovation. So
> I'd
> guess it's still a unique thing.

Not quite: NetBSD also features softupdates and also supports snapshots
(though I don't know how stable it is, as I've never tried it on my
NetBSD system).  The snapshot interface under NetBSD is different from
that on FreeBSD: you can create a snapshot "device" that can be used to
snapshot a file system.  (You can then mount or dump the snapshot device
to get a consistent image/backup of the filesystem being snapshotted.)
The main difference appears to be you are not limited to snapshots
residing on the same file system of which you are taking a snapshot,
which could be handy for near-full active filesystems.  See fss(4) and
fssconfig(8) man pages under NetBSD for details.

The other thing to note about FreeBSD snapshots that I don't think has
been mentioned is that they are only supported on UFS2 filesystems,
meaning they are unavailable under FreeBSD 4.x and earlier (or on older
filesystems created by those older versions of FreeBSD).

I've been using snapshots under FreeBSD 5 onwards, pretty much since the
feature became available, and have only ever had a problem once (due to
a race condition in the snapshot code, it was surmised), and that was
with a nightly automated network backup of snapshots of all filesystems
on a system with high disk I/O.  I find it to be a really valuable
feature.

Cheers,

Paul.
-- 
e-mail: [EMAIL PROTECTED]

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
--- Frank Vincent Zappa
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-10-31 Thread Dan Nelson
In the last episode (Oct 31), Paul Mather said:
> The other thing to note about FreeBSD snapshots that I don't think
> has been mentioned is that they are only supported on UFS2
> filesystems, meaning they are unavailable under FreeBSD 4.x and
> earlier (or on older filesystems created by those older versions of
> FreeBSD).

Snapshots work just fine on UFS1 filesystems; you just need to be
running 5.x or newer.

-- 
Dan Nelson
[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 strategies

2005-10-31 Thread Paul Mather
On Mon, 2005-10-31 at 13:53 -0600, Dan Nelson wrote:
> In the last episode (Oct 31), Paul Mather said:
> > The other thing to note about FreeBSD snapshots that I don't think
> > has been mentioned is that they are only supported on UFS2
> > filesystems, meaning they are unavailable under FreeBSD 4.x and
> > earlier (or on older filesystems created by those older versions of
> > FreeBSD).
> 
> Snapshots work just fine on UFS1 filesystems; you just need to be
> running 5.x or newer.

You are correct, sir; ignore me---I must have been thinking of native
extended attributes support...

(Unfortunately, this still means you can't take snapshots on 4.x and
earlier, though, which is a shame because I find the feature very
handy.)

Cheers,

Paul.
-- 
e-mail: [EMAIL PROTECTED]

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
--- Frank Vincent Zappa
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: backup strategies

2005-11-01 Thread Csaba Henk
On Mon, Oct 31, 2005 at 02:37:32PM -0500, Paul Mather wrote:
> Not quite: NetBSD also features softupdates and also supports snapshots
> (though I don't know how stable it is, as I've never tried it on my
> NetBSD system).  The snapshot interface under NetBSD is different from

That's also good to know. Thanks for the information.

-- 
Csaba Henk

My sense of humour is often too subtle to cope with getting smileyd.
Please don't take it personal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup scheme

2005-11-19 Thread Lowell Gilbert
Svein Halvor Halvorsen <[EMAIL PROTECTED]> writes:

> I'm in the process of employing the following backup scheme:
> 
> 1) Take a snapshot using mksnap_ffs
> 2) Mount the snapshot
> 3) rsync the mounted snapshot to a remote server
> 4) Unmount and delete local snapshot
> 5) Take a new snapshot on the remote computer
> 6) Rotate old snapshots
> 7) Somehow export the snapshots back to the original computer
> 
> 
> So I've got 1-6 working. This gived my a space efficient backup system, 
> remotely stored. As to pt. 7, I was thinking of using NFS, but since the 
> remote server is behind NAT, this seems unfeasible. So now what?
> 
> NFS over VPN? ggated/ggatec? Other solutions?

Routing protocols aren't going to help.  If you want to mount a
filesystem remotely, you need some kind of network filesystem.  NFS is
the most common way to do this, but should only be used on secure
networks (you should be able to make it traverse NAT okay, but if
there's a NAT in the way I'll guess there's probably also a public
internet).  Running NFS over an encrypted VPN is an obvious idea; you
might want to look at net/arla (AFS) as well.  There is work on an
ssh-based remote filesystem ("fuse"), but I don't know much about it
yet, beyond the fact that the recent FreeBSD status report announced
it ready for use. 
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup scheme

2005-11-19 Thread Svein Halvor Halvorsen

* Lowell Gilbert [2005-11-19 08:58 -0500]
>  Svein Halvor Halvorsen <[EMAIL PROTECTED]> writes:
:  : 
>  > So I've got 1-6 working. This gived my a space efficient backup system, 
>  > remotely stored. As to pt. 7, I was thinking of using NFS, but since the 
>  > remote server is behind NAT, this seems unfeasible. So now what?
>  > 
>  > NFS over VPN? ggated/ggatec? Other solutions?
>  
>  Routing protocols aren't going to help.  If you want to mount a
>  filesystem remotely, you need some kind of network filesystem.  NFS is
>  the most common way to do this, but should only be used on secure
>  networks (you should be able to make it traverse NAT okay, but if
>  there's a NAT in the way I'll guess there's probably also a public
>  internet).  Running NFS over an encrypted VPN is an obvious idea; you
>  might want to look at net/arla (AFS) as well.  There is work on an
>  ssh-based remote filesystem ("fuse"), but I don't know much about it
>  yet, beyond the fact that the recent FreeBSD status report announced
>  it ready for use. 

Ok, thanks for the pointers. I will look into those. But how about GEOM 
gate? Is that out of the questions? That is also unencrypted, but of this 
is non-sensitive data. Is ggate feasible?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mail backup solution?

2006-03-13 Thread Carlos Silva, yourdot-internet.com

Hello,

I have my email stored at a reseller account (via imap) on a server.
My intention is that my server at home, download all the emails via imap 
to backup automatically everyday.
But, I dont want that my server download repeated messages (because i 
have thousands of emails...).

Someone has a solution?

Best Regards,

Carlos Silva,

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


mail backup solution?

2006-03-13 Thread Carlos Silva, yourdot-internet.com

Hello,

I have my email stored at a reseller account (via imap) on a server.
My intention is that my server at home, download all the emails via imap
to backup automatically everyday.
But, I dont want that my server download repeated messages (because i
have thousands of emails...).
Someone has a solution?

Best Regards,

Carlos Silva,

http://www.yourdot-services.com/

___
freebsd-questions@freebsd.org 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]"


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]"


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 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 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 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 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


Backup with dd?

2005-01-03 Thread Eric F Crist
Hello all,
I've decided to try doing a complete system backup, attempting a 
bit-for-bit copy.  A friend told me to try the following:

# dd if=/dev/ad4 of=/dev/ad6
Both drives are identical SATA150.  Is this the best way?  I'm hope to 
be able to do a daily/weekly backup this way, and if my primary drive 
fails, switch the cables and just reboot.

TIA
___
Eric F Crist  "I am so smart, S.M.R.T!"
Secure Computing Networks  -Homer J Simpson


PGP.sig
Description: This is a digitally signed message part


Remote backup solutions

2006-02-07 Thread Göran Nilsson
Hi all.
Im looking for som software (opensource) that's scalable to to plenty of
remote backups over the Internet. The idea about this is offering small
companys to do theire backup to a remote distance, and don't have to concern
that much about it. The companys servers are generally NT 4.0 Server up to
Windows2003. The backup system should be based on a FreeBSD 6.0 system. In
the beginning it won't be that many companys doing remotebackups still, it
should be easy grow with the jobs needed.
Anyone have a pointer to what i should look for?
Shoud the backups be done via a vpn solutions like "OpenVPN" and rsync?
Or should i look for something else? Are there any "pitfalls" i should
lookout for?

Anyway any/all feedback is most appriciated.



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


Re: Backup softwares ?

2006-03-01 Thread Frank Bonnet

Frank Bonnet wrote:

Hello

I'm searching for a professional backup software that runs with FreeBSD 6.x
it will drive an Overland library and would have an ergonomical 
graphical interface
as the person who will use it will not be a computer freak :-) also the 
easy restoring

capabilities would be a plus.

there are now a lot that run with Linux but I would prefer FreeBSD ...

Any infos welcome
Thanks you


Reading my post I forgot to mention that NDMP is a must
as it will backup some NetApp filers.


--
Frank Bonnet
- Memory fault - where am I? -
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Backup softwares ?

2006-03-01 Thread Chuck Swiger
Frank Bonnet wrote:
> Frank Bonnet wrote:
>> Hello
>>
>> I'm searching for a professional backup software that runs with
>> FreeBSD 6.x
>> it will drive an Overland library and would have an ergonomical
>> graphical interface
>> as the person who will use it will not be a computer freak :-) also
>> the easy restoring
>> capabilities would be a plus.
>>
>> there are now a lot that run with Linux but I would prefer FreeBSD ...
>>
>> Any infos welcome
>> Thanks you
> 
> Reading my post I forgot to mention that NDMP is a must
> as it will backup some NetApp filers.

Hmm, maybe you should contact NetApp and ask them for recommendations.  I
believe Legato Networker has a FreeBSD client, perhaps look into that...

Note that you're going to be looking at $25K-100K or so in licensing to get a
networked version of Legato that drives a tape jukebox

-- 
-Chuck

___
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]"


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 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 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


Multi-Volume Backup

2005-06-09 Thread Cody Holland
I'm trying to do a multi-volume backup to hard drive via gnu tar.  It
works with the following command:
gtar -c -L 681574400 -f /usr/local/backup/dev1.tgz -f
/usr/local/backup/dev2.tgz -f /usr/local/backup/dev3.tgz /

But I really, really need this compressed.  If I put a -z in the command
it errors out stating:
gtar: Cannot use multi-volume compressed archives
gtar: Error is not recoverable: exiting now

Is there any way to do a compressed multi-volume backup, with each
volume being 650mb to hard drive?  Either with gtar or any other backup
method.

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


Backup kernel - confirmation

2005-07-28 Thread Norberto Meijome
quick question - I have a remote box with SMP/HTT disabled, but I'd like 
to see how it works with it. If I make a copy of my current kernel to 
/kernel_orig, I should be able to install the SMP one as /kernel, and if 
hell breaks lose, I should be able to point it to /kernel_orig ... right?


any caveats for this? ( I do off-band access to the server)

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


backup FreeBSD system

2005-04-21 Thread Joshua Lewis
I have a working FreeBSD system that I love and...(Wow saying out loud I
think I may need to seek a professional). Any way I would hate to loose it
and was wondering if there is a way to make a duplicate system without
weeks of configuration. Kind of like RAID Mirroring for a computer?

I understand there is g4u (That would get the new system up and running
quickly) but I think the hardware would be different enough that my custom
kernel may not like it (Unless I could do that and boot into single user
mode and compile a new kernel… Is that feasible?)

I am probably going to load FreeBSD from scratch. Not hard at all. I can
be done in a matter of 20 mins (When I told my boss that his jaw dropped.
Try to load windows from scratch in 20 mins). I found a good doc on
hardening a FreeBSD system on BSDGuides:
http://www.bsdguides.org/guides/freebsd/security/harden.php

That should only take me an hour.

So how do I copy everything else? All my programs and such and keep them
up to date. Let’s say once a week Server-A copies its self to ServerB so
if one died I could throw the other on the net change it's IP and computer
name and be done with it. Can I just copy /usr to the other system and be
done with it? Is it a bad idea to setup a cron job to do that once a week
or more? Should I tar it first then copy it and untar it?



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


Re: Full backup

2005-05-03 Thread Andy Firman
On Tue, May 03, 2005 at 10:14:20AM -0300, Aguiar Magalhaes wrote:
> Hi list,
> 
> I?m using FreeBSD 5.3 - Release and I?d like to known
> how to make a "full" backup (image) of my HD scsi.
> 
> With Linux machines I?ve used Norton Ghost to make a
> image from HD. If I had a "crash" in my HD, I restore
> the image in a few minutes.
> 
> How can I to proceed in FreeBSD ?

>From the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   3   4   5   6   7   8   9   10   >