BackupPC-users

Re: [BackupPC-users] error crontab

2016-05-31 11:35:22
Subject: Re: [BackupPC-users] error crontab
From: Bowie Bailey <Bowie_Bailey AT BUC DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 31 May 2016 11:34:43 -0400
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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>