Re: [BackupPC-users] Backing up a USB-disk?

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 01:50, Magnus Larssonmag...@vista.se wrote:
 mountpoint -q /path/to/usbdisk
 (will set $? to 0 if it's mounted, non-zero otherwise)

 How would I use this value that mountpoint returns, do you mean?

The same way you would use the '[ -f
/path/to/usbdisk/.fileyouwouldhavetocreate ]', but without creating
the file...

I'm not really an expert on BackupPC (I only used the basic features
so far), but I believe you would use that as a script for PingCmd or
maybe DumpPreUserCmd and maybe together with UserCmdCheckStatus (see
Jeffrey's previous e-mail). I guess they could give you some more help
on how to configure this than I could...

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Magnus Larsson
Hi!

I have backuppc runing on my home LAN, backing up 5 different computers,
and working very well. However, I have a USB disk where I keep some
stuff that I would like to back up as well. Is there a way of doing this
with backuppc? It is not always turned on and plugged in, so setting its
mount point as one directory to backup during normal backup doesn't work
(shows as empty folder when I try, when it has not been on for some time
during the backup process). And as I gather, an incremental backup when
it is disconnected means it shows as empty, even if only one run, right?
So finding the backup might be tricky.

What I would like is to have it as a separate host, and then do manual
backups when I want to. Can I do this even though the host it is
connected to already is a backuppc host? This would mean defining one
host as a subdir of another host, in the config.pl. With the same host
name and ip. 

Anyone got advice on this? Grateful for any help. 


Magnus Larsson


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Tino Schwarze
Hi Magnus,

On Wed, Jun 10, 2009 at 09:05:26PM +, Magnus Larsson wrote:

 What I would like is to have it as a separate host, and then do manual
 backups when I want to. Can I do this even though the host it is
 connected to already is a backuppc host? This would mean defining one
 host as a subdir of another host, in the config.pl. With the same host
 name and ip. 

You may simple configure another host (name it, for example,
myserver-usbdisk), then set $Config{ClientNamAlias}.

See
http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_clientnamealias_
See also $Conf{BackupsDisable} on how to disable automatic backup of a
particular host:
http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupsdisable_

HTH,

Tino.

-- 
What we nourish flourishes. - Was wir nähren erblüht.

www.lichtkreis-chemnitz.de
www.craniosacralzentrum.de

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Holger Parplies
Hi,

Tino Schwarze wrote on 2009-06-10 23:20:29 +0200 [Re: [BackupPC-users] Backing 
up a USB-disk?]:
 On Wed, Jun 10, 2009 at 09:05:26PM +, Magnus Larsson wrote:
 
  What I would like is to have it as a separate host, and then do manual
  backups when I want to. Can I do this even though the host it is
  connected to already is a backuppc host?

Yes.

  This would mean defining one host as a subdir of another host, in the
  config.pl. With the same host name and ip. 

No. Instead:

 You may simple configure another host (name it, for example,
 myserver-usbdisk), then set $Config{ClientNamAlias}.
 
 See
 http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_clientnamealias_
 See also $Conf{BackupsDisable} on how to disable automatic backup of a
 particular host:
 http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupsdisable_

note that you could even set the PingCmd to a shell script that checks
whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
if you have a file '.thisistheusbdisk' in the root of your USB disk's file
system - please ask if you need more details). Then you can even keep
automatic backups running (just in case you forget manual backups and the
disk happens to be plugged in at wakeup time).

You might also want to set EMailNotifyOldBackupDays or EMailNotifyMinDays.

Regards,
Holger

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Filipe Brandenburger
Hi,

On Wed, Jun 10, 2009 at 17:57, Holger Parplieswb...@parplies.de wrote:
 note that you could even set the PingCmd to a shell script that checks
 whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
 if you have a file '.thisistheusbdisk' in the root of your USB disk's file
 system - please ask if you need more details).

You can use the mountpoint command (present in RHEL 5 or SuSE 10) to
test if that path is a mount point for some volume.

mountpoint -q /path/to/usbdisk
(will set $? to 0 if it's mounted, non-zero otherwise)

No need to create .thisistheusbdisk files inside your USB then.

HTH,
Filipe

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Adam Goryachev
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Holger Parplies wrote:
 Hi,

 Tino Schwarze wrote on 2009-06-10 23:20:29 +0200 [Re: [BackupPC-users]
Backing up a USB-disk?]:
 On Wed, Jun 10, 2009 at 09:05:26PM +, Magnus Larsson wrote:
 You may simple configure another host (name it, for example,
 myserver-usbdisk), then set $Config{ClientNamAlias}.

 See

http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_clientnamealias_
 See also $Conf{BackupsDisable} on how to disable automatic backup of a
 particular host:

http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupsdisable_

 note that you could even set the PingCmd to a shell script that checks
 whether the disk is mounted (eg. '[ -f
/path/to/usbdisk/.thisistheusbdisk ]'
 if you have a file '.thisistheusbdisk' in the root of your USB disk's file
 system - please ask if you need more details). Then you can even keep
 automatic backups running (just in case you forget manual backups and the
 disk happens to be plugged in at wakeup time).
Or using the default config which says that if the share backup is
empty then consider it a failure. Thus you can allow backuppc to
regularly attempt a backup automatically, if the USB disk is not
connected then it will fail, if it is connected then you get a new backup.

Regards,
Adam
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkowcIcACgkQGyoxogrTyiWQ8gCgqqpQXZFu7mDI0eMLHS37swo3
VXYAoIgjhjQPQj8aXBw1jeDjzxaURuTm
=d/A9
-END PGP SIGNATURE-


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Jeffrey J. Kosowsky
Tino Schwarze wrote at about 23:20:29 +0200 on Wednesday, June 10, 2009:
  Hi Magnus,
  
  On Wed, Jun 10, 2009 at 09:05:26PM +, Magnus Larsson wrote:
  
   What I would like is to have it as a separate host, and then do manual
   backups when I want to. Can I do this even though the host it is
   connected to already is a backuppc host? This would mean defining one
   host as a subdir of another host, in the config.pl. With the same host
   name and ip. 
  
  You may simple configure another host (name it, for example,
  myserver-usbdisk), then set $Config{ClientNamAlias}.
  

To be complete you would probably need to also do the following:
1. On the original (non-alias) version of the host, exclude the mount
   point for the USB disk

2. On the alias version, set the share name to start the backup at the
   mount point

3. Set DumpPreUserCmd to test to make sure the usb disk is mounted and
   return non-zero exit status if not. This makes sure that the
   alternate host is only backed up if the disk is mounted.
   Also set:
$Conf{UserCmdCheckStatus} = 1

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a USB-disk?

2009-06-10 Thread Magnus Larsson
Great, thanks!!

That part on checking whether the disk is mounted - could you give me
some more details on that? Never used such a script here. 

Magnus


ons 2009-06-10 klockan 23:57 +0200 skrev Holger Parplies:
 Hi,
 
 Tino Schwarze wrote on 2009-06-10 23:20:29 +0200 [Re: [BackupPC-users] 
 Backing up a USB-disk?]:
  On Wed, Jun 10, 2009 at 09:05:26PM +, Magnus Larsson wrote:
  
   What I would like is to have it as a separate host, and then do manual
   backups when I want to. Can I do this even though the host it is
   connected to already is a backuppc host?
 
 Yes.
 
   This would mean defining one host as a subdir of another host, in the
   config.pl. With the same host name and ip. 
 
 No. Instead:
 
  You may simple configure another host (name it, for example,
  myserver-usbdisk), then set $Config{ClientNamAlias}.
  
  See
  http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_clientnamealias_
  See also $Conf{BackupsDisable} on how to disable automatic backup of a
  particular host:
  http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupsdisable_
 
 note that you could even set the PingCmd to a shell script that checks
 whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
 if you have a file '.thisistheusbdisk' in the root of your USB disk's file
 system - please ask if you need more details). Then you can even keep
 automatic backups running (just in case you forget manual backups and the
 disk happens to be plugged in at wakeup time).
 
 You might also want to set EMailNotifyOldBackupDays or EMailNotifyMinDays.
 
 Regards,
 Holger
 
 --
 Crystal Reports - New Free Runtime and 30 Day Trial
 Check out the new simplified licensing option that enables unlimited
 royalty-free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 BackupPC-users mailing list
 BackupPC-users@lists.sourceforge.net
 List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
 Wiki:http://backuppc.wiki.sourceforge.net
 Project: http://backuppc.sourceforge.net/


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/