Re: [BackupPC-users] Backup to USB disk.

2008-04-15 Thread Martin Leben
Hi Daniel, No, not quite. If you want a clean file system on the drive you are going to remove you must temporary stop BackupPC and unmount the file system first. When the drive is removed you can mount the file system again and start BackupPC. This will cause the RAID to run in degraded mode

Re: [BackupPC-users] Backup to USB disk.

2008-04-15 Thread Daniel Denson
I think I understand your want in that you would like to have backuppc check that a drive is hooked up before trying to use it for backups. If I am correct then I would suggest you build a quick daemon script that starts backuppc when the device is hotplugged and stops backuppc when unplugged.

Re: [BackupPC-users] Backup to USB disk.

2008-04-15 Thread Nils Breunese (Lemonbit)
Les Stott wrote: > Nils Breunese (Lemonbit) wrote: >> > >> Couldn't you use hotplug to start the BackupPC daemon when the >> external drive gets plugged in and stop it when it is removed? >> > > Yeah, that worked OK in centos 4 with the hal daemon, but then it all > changed in CentOS 5 with the gn

Re: [BackupPC-users] Backup to USB disk.

2008-04-15 Thread Les Stott
Nils Breunese (Lemonbit) wrote: > > Couldn't you use hotplug to start the BackupPC daemon when the > external drive gets plugged in and stop it when it is removed? > > > Yeah, that worked OK in centos 4 with the hal daemon, but then it all changed in CentOS 5 with the gnome auto mounting. Ma

Re: [BackupPC-users] Backup to USB disk.

2008-04-15 Thread Nils Breunese (Lemonbit)
Les Stott wrote: >> Just thinking out loud here, but couldn't you achieve the same result >> by using the automounter? The the drive is present, the automounter >> would mount it up and then BackupPC would be happy. If the drive >> isn't present, the mount should fail and BackupPC would error out

Re: [BackupPC-users] Backup to USB disk.

2008-04-14 Thread Les Stott
> > Just thinking out loud here, but couldn't you achieve the same result > by using the automounter? The the drive is present, the automounter > would mount it up and then BackupPC would be happy. If the drive > isn't present, the mount should fail and BackupPC would error out > because i

Re: [BackupPC-users] Backup to USB disk.

2008-04-14 Thread Michael Barrow
>> Can someone help me, please? >> > Yes. > Just thinking out loud here, but couldn't you achieve the same result by using the automounter? The the drive is present, the automounter would mount it up and then BackupPC would be happy. If the drive isn't present, the mount should fail and Bac

Re: [BackupPC-users] Backup to USB disk.

2008-04-14 Thread Les Stott
Mauro Condarelli wrote: Hi, I asked this before, but no one answered, so I will try again :) I am using a large (500G) external USB disk as backup media. It performs reasonably, so no sweat. Problem is: Is there a way to do a pre-check to see if the drive is actually mounted and, if not, just s

Re: [BackupPC-users] Backup to USB disk.

2008-04-14 Thread Martin Leben
Mauro Condarelli wrote: > Hi, > I asked this before, but no one answered, so I will try again :) > > I am using a large (500G) external USB disk as backup media. > It performs reasonably, so no sweat. > > Problem is: > Is there a way to do a pre-check to see if the drive is actually mounted > and

[BackupPC-users] Backup to USB disk.

2008-04-14 Thread Mauro Condarelli
Hi, I asked this before, but no one answered, so I will try again :) I am using a large (500G) external USB disk as backup media. It performs reasonably, so no sweat. Problem is: Is there a way to do a pre-check to see if the drive is actually mounted and, if not, just skip the scheduled backup?