Re: [BackupPC-users] error crontab

2016-05-31 Thread Holger Parplies
Hi,

Bowie Bailey wrote on 2016-05-31 11:34:43 -0400 [Re: [BackupPC-users] error 
crontab]:
> On 5/31/2016 9:53 AM, Carl Wilhelm Soderstrom wrote:
> > Put your entries in /etc/crontab. They will be easier to find there.
> >
> > [...]
> 
> Alternately, you can use the per-user crontab correctly.  Use 'crontab 
> -e backuppc' to create/edit the crontab for backuppc and then enter in 
> your command without the username.
> 
> 20 20 * * * /usr/share/backuppc/bin/BackupPC_serverMesg backup 
> example-2.example.com example-2.example.com backuppc 1

all of that said, you need to get the BackupPC_serverMesg command right, as
indicated here, which you did not in your original post. The syntax for
requesting a backup is

BackupPC_serverMesg backup

where  *needs to* match a host you defined in BackupPC (i.e. if you
named your host "foo", you can't use "foo.domain.com", "cname-for-foo", or
"1.2.3.4" here) and  should probably be identical to  unless
you know what you are doing (hint: you don't; using an IP or something else
that resolves to the same IP might occasionally work, but a quick glance at
the code suggests that this may break BackupPC internal synchronisation). 
 is informational only, if I remember correctly, and backupType is one
of "auto", -1, "doIncr", 0, "doFull", 1 with the text corresponding to the
following number.

If you want to request three backups, then that's three individual
BackupPC_serverMesg commands.

Hope that helps.

Regards,
Holger

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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] error crontab

2016-05-31 Thread Bowie Bailey
On 5/31/2016 9:53 AM, Carl Wilhelm Soderstrom wrote:
> Put your entries in /etc/crontab. They will be easier to find there.
>
> Here's an example I have:
>
> 20 20 * * * backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
> example-2.example.com example-2.example.com backuppc 1
>
> Use a '1' for a 'full' backup, '0' for an incremental backup.
>
> As was pointed out in another post, you can only specify the username in
> /etc/crontab, not in the per-user crontabs (crontab -e / crontab -l).

Alternately, you can use the per-user crontab correctly.  Use 'crontab 
-e backuppc' to create/edit the crontab for backuppc and then enter in 
your command without the username.

20 20 * * * /usr/share/backuppc/bin/BackupPC_serverMesg backup 
example-2.example.com example-2.example.com backuppc 1

You can then use 'crontab -l backuppc' to view the crontab.  This is 
assuming you are running as root as in your example.  You can also do 
this as the backuppc user.  In that case, just leave the username off 
the crontab commands ('crontab -l' or 'crontab -e').

-- 
Bowie

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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] error crontab

2016-05-31 Thread Carl Wilhelm Soderstrom
Put your entries in /etc/crontab. They will be easier to find there.

Here's an example I have:

20 20 * * * backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
example-2.example.com example-2.example.com backuppc 1

Use a '1' for a 'full' backup, '0' for an incremental backup.

As was pointed out in another post, you can only specify the username in
/etc/crontab, not in the per-user crontabs (crontab -e / crontab -l).

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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] error crontab

2016-05-31 Thread Alexander Moisseev
On 31.05.2016 13:42, Antonio Rodes wrote:
> root@backupserver:~# crontab -l
> 00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
> 172.16.0.2 172.16.0.3 172.16.0.4 1
>
> root@backupserver:~# su backup
> 00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
> 172.16.0.2 172.16.0.3 172.16.0.4 1
>

I'm not sure what your question is about, but you cannot specify user name in a 
crontab. Instead of creating a crontab for the root user, create a crontab for 
the backuppc user or use 'su' inside the root's crontab like that:

su -m backuppc -c 'your command here'

--
Alexander

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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] error crontab

2016-05-31 Thread FLORENT Philippe
Dude,  I am pretty sure this list only support english

-Original Message-
From: Antonio Rodes [mailto:aro...@tecnausa.com] 
Sent: mardi 31 mai 2016 12:42
To: backuppc-users@lists.sourceforge.net
Subject: [BackupPC-users] error crontab

Hola,

Para forzar un full backup para los servidores indicados (172.16.0.2
172.16.0.3 172.16.0.4 1). Pero no funciona, lo instala el crontab pero no lo 
ejecuta nunca. Estoy ejecutando el script:

root@backupserver:~# crontab -l
00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
172.16.0.2 172.16.0.3 172.16.0.4 1

root@backupserver:~# su backup
00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup
172.16.0.2 172.16.0.3 172.16.0.4 1

Donde puede estar el error?

Gracias!

Antonio Rodes,
Administrador de sistemas.





--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic 
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning 
reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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/

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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] error crontab

2016-05-31 Thread Antonio Rodes
Hola,

Para forzar un full backup para los servidores indicados (172.16.0.2 
172.16.0.3 172.16.0.4 1). Pero no funciona, lo instala el crontab pero 
no lo ejecuta nunca. Estoy ejecutando el script:

root@backupserver:~# crontab -l
00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup 
172.16.0.2 172.16.0.3 172.16.0.4 1

root@backupserver:~# su backup
00 01 * * 6 backuppc /usr/share/backuppc/bin/BackupPC_serverMesg backup 
172.16.0.2 172.16.0.3 172.16.0.4 1

Donde puede estar el error?

Gracias!

Antonio Rodes,
Administrador de sistemas.





--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
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/