Koozali.org: home of the SME Server

Backup To Workstation

Offline ronnie_dk

  • *
  • 19
  • +0/-0
Backup To Workstation
« on: October 11, 2005, 10:07:04 PM »
Hi there .
Proudly user of SME 6.01 official with some addons.
Man it´s easy to configure.. 8-) and I´m a newbe at linux.( only fooled around with some distros )

I was wondering about if the Backup2WS is capable of writing the backup file on locally mounted USB drive instead of saving to another network drive?
EG: point to /mnt/usbdisk instead of pointing to //servername/sharename in servermanager.

Of cource when backing up the backup must exclude itself from beeing backed up by adding the path in the Exclusion List.

My diskusage is reporting used=1GB and thats about what I´m expecting for future use.. Until SME Version 7 pops out..

I'm planning to do a Full backup just in case of disaster recovery needs, eg: after each reconfiguration or addon added.
My goal is to be capable doing a restore on a fresh installed SME if needed.

I also want to make daily backups of mails.
Am i completely insane? :hammer:

TKS
R.
...

Offline jfarschman

  • *
  • 406
  • +0/-0
Backup To Workstation
« Reply #1 on: October 12, 2005, 09:19:27 PM »
Ronnie,

  That's not crazy at all, but you need to point it to //localhost/sharename.  I don't think you can get it to work using unless you send the information to the SAMBA name.

  With that said... I recommend using a USB2 drive.  USB1 will be frustratingly slow.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline ronnie_dk

  • *
  • 19
  • +0/-0
Backup To Workstation
« Reply #2 on: October 12, 2005, 10:01:24 PM »
Hi Jay.
Tks for the reply.
Is there anyway i should prepare SME or the disk or is it ok just to pop it in and mount the device as a scsi device as normal on RH7?

Is the following statements correct ? pls correct me if I´m wrong:

cat proc/dev/scsi/scsi
Write down the answer xxx and afterwards:
mkfs -t ext2 /dev/xxx
mount the device xxx on Eg: /mnt/usbdevice
Insert the mount in /etc/fstab
edit smb.conf to add //localhost/backupshare
Make a backup excluding the sambashare of course.

Do i need to be in runlevel 1 doing this "telinit 1"?

Tks
Ronnie
[/quote]
...

Offline jfarschman

  • *
  • 406
  • +0/-0
Backup To Workstation
« Reply #3 on: October 12, 2005, 10:41:18 PM »
Ronnie,

  I don't know how much experience you have modifying config files in SME.  In general you cannot just make  changes to a config file because they will be overwritten by SME when you make a change in the GUI.  But /etc/fstab is the exception.  You CAN change it.  There is a message telling you about this.  

  I have some notes from the last time I installed a drive.  I was making wanted the new drive to also be an i-bay.  So my notes have some i-bay specific knowledge in them.  

  Lastly... these notes are from an older post that I  used some time ago.  I just tested them and updated them.

####################################
df -h # What's already installed
dmesg |grep sectors # Should show you your disks
# Careful here... get the correct device.
fdisk /dev/hdb # Mabye it's not hdb. Be careful.
# Basically do an 'n' 'p' '1' 'w' to create a new, primary partition

# Format it and and build the mount points.
mkfs.ext3 -m 0 -j /dev/hdb1
mkdir -p /mnt/backup/ibays/backup/files/
chown root:root /mnt/backup/ibays/backup
chmod 755 /mnt/backup/ibays/backup

Edit the /etc/fstab
dev/hdb1 /mnt/backup/ibays/backup ext3 default 1 2

mount -a # Checks all the mount points.
# mount /dev/hdb1 /mnt/backup/ibays/backup
ls -l /mnt/backup/ibays/backup

# Migrate Old ibay and compare. I found that it did not migrate the .AppleDesktop
cp -rip /home/e-smith/files/ibays/backup/* /mnt/backup/ibays/backup/
cp -Ra /home/e-smith/files/ibays/backup/.AppleDesktop /mnt/backup/ibays/backup/
diff -r /mnt/backup/ibays/backup /home/e-smith/files/ibays/backup
rm -rf /home/e-smith/files/ibays/backup
ln -s /mnt/backup/ibays/backup /home/e-smith/files/ibays/backup
ls /home/e-smith/files/ibays/backup
# quotacheck -vugc /dev/hdb1
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com