Koozali.org: home of the SME Server

Backup to USB device via console

Backup to USB device via console
« on: January 03, 2008, 08:17:23 PM »
Hi there

I'm trying to do a backup via the console (option 8 - backup to USB device) but the backup dies after a few minutes due to the hard drive being full.

I'm running v7.2

Running df -h gives :

Code: [Select]
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/main-root
                       37G   34G  922M  98% /
/dev/md1               99M  9.3M   85M  10% /boot
none                  125M     0  125M   0% /dev/shm

Isn't the backup utility supposed to write to the backup device? Or does it first create the backup file on the server's HDD and then copy the file over after completion?

Checking out my system gives the following :

1. Log file :

It shows that the USB device is detected correctly, and mounted as /media/Backup

Code: [Select]
Jan  3 23:22:53 server kernel: usb 1-2: new full speed USB device using address 4
Jan  3 23:22:53 server kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jan  3 23:22:54 server kernel:   Vendor: SAMSUNG   Model: SP0802N           Rev: TK10
Jan  3 23:22:54 server kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jan  3 23:22:54 server kernel: SCSI device sda: 156368016 512-byte hdwr sectors (80060 MB)
Jan  3 23:22:54 server kernel: sda: assuming drive cache: write through
Jan  3 23:22:54 server kernel: SCSI device sda: 156368016 512-byte hdwr sectors (80060 MB)
Jan  3 23:22:54 server kernel: sda: assuming drive cache: write through
Jan  3 23:22:54 server scsi.agent[5963]: disk at /devices/pci0000:00/0000:00:04.2/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0
Jan  3 23:22:54 server kernel:  sda: sda1
Jan  3 23:22:54 server kernel: Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Jan  3 23:22:54 server kernel: USB Mass Storage device found at 4
Jan  3 23:22:55 server fstab-sync[6064]: added mount point /media/Backup for /dev/sda1

Also, should I disconnect the USB device, the mount point disappears, and reappears when the USB device is reconnected.

However, when I copy a file to the mount point, it is duplicated on the hard drive - and not on the backup device. The USB device is an external 80Gb IDE HDD running in an USB enclosure. When disconnecting the USB device, the mount point does not disappear, but remains.

Should you need further data, please do not hesitate to contact myself.

Regards

Libs
« Last Edit: January 03, 2008, 08:42:29 PM by The_Librarian »

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Backup to USB device via console
« Reply #1 on: July 04, 2009, 08:13:27 AM »
Good Day

That is correct, it makes a copy to the local disk first

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Backup to USB device via console
« Reply #2 on: July 04, 2009, 05:04:42 PM »
That is correct, it makes a copy to the local disk first

No, that is not correct. Backup is done directly to the mounted USB backup device, without making any copies on local disk. shawnbishop, please be certain you are correct rather than  posting misinformation here.

To The_Librarian, if the console backup does not work correctly, please post details of your problem to the bug tracker.



Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Backup to USB device via console
« Reply #3 on: July 05, 2009, 11:42:00 AM »
Hi CharlieBrady

Sorry if its the incorrect info, but from my experience it uses up space on the machine, as my disk space on my servers decrease when the backup to USB starts...even if it isnt a complete copy of the backup, it is using something before it goes to the USB.

As you can see from The_Librarian post there is only 2% free on the HDD, so that is why they are getting errors, and it fails..