nssbackup cron job not created
I need to schedule nssbackup to create backups every day. When I use the tab "time" to set up time for backups, it saves appropriate line in /etc/nssbackup.
[log]
file = /var/log/
level = 20
[places]
prefix = /usr
[schedule]
cron = 0 3 * * *
....
But nothing happens when that time comes.
There is also no entry in crontab for root:
# crontab -l
no crontab for root
I am using nssbackup 0-2.0 RC5
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nssbackup Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
![]() |
#2 |
Hi,
NSsbackup doesn't use crontab to schedule jobs. It links a file to /etc/cron.d which contains the cron information.
Hope that this answers to you question.
Cheers
Aziz
Revision history for this message
![]() |
#3 |
But why it does not make backups at specified time? Do I need some extra configuration to force it?
Revision history for this message
![]() |
#4 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
![]() |
#5 |
ablu,
I've seen nssbackup link the wrong file under /etc/cron.d. Specifically,
it links to the nssbackup directory, and not the nssbackup executable.
Look for a symbolic link named 'nssbackup' that lives under /etc/cron.d,
and check what it refers to. If it refers to the directory (e.g.,
/usr/local/
executable (e.g., 'sudo ln -s /usr/local/
/etc/cron.
--
Groetjes,
Anton
_____________ _______
| | |
| _ _ ___,| K. Anton Feenstra |
| / \ / \'| | | IBIVU/Bioinform
|( | )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands |
| \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 |
| | <email address hidden> - www.few.
| | "Yeah, uh uh, Neil's Head !" (Neil) |
|______
Revision history for this message
![]() |
#6 |
Change question status to reflect my earlier message.
Revision history for this message
![]() |
#7 |
thanks Anton,
In fact, I understand it is a problem of path to execute nssbackup, so I modified the original file (/etc/cron.
SHELL=/bin/bash
PATH=/usr/
0 * * * * root if [ -x '/usr/share/
So, this modification is a solution to solve my problem but i prefer your method which consist to create a link. When i create a link with your command i get a link named "daily' with the contain :
if [ -x /usr/bin/nssbackupd ]
then /usr/bin/nssbackupd
elif [ -x /usr/local/
then /usr/local/
fi
so the link refer to the good target but there is not any param of cron. Must we add : 0 * * * * root ?
thanks for your help !!
ps : sorry for my low level in english but i do my best
Revision history for this message
![]() |
#8 |
lastico wrote:
> Question #62814 on NSsbackup changed:
> https:/
>
> lastico requested for more information:
> thanks Anton,
>
> In fact, I understand it is a problem of path to execute nssbackup, so I
> modified the original file (/etc/cron.
> this configuration i have a backup every hour :
[...]
> so the link refer to the good target but there is not any param of cron.
> Must we add : 0 * * * * root ?
The simpler solution might be to create a link in the /etc/cron.hourly
directory, like 'sudo ln -s /usr/bin/nssbackup /etc/cron.hourly'.
> ps : sorry for my low level in english but i do my best
No problem, all native speakers we can't be ;-)
Groetjes,
Anton.
Revision history for this message
![]() |
#9 |
thanks for your rapid answer,
>The simpler solution might be to create a link in the /etc/cron.hourly
>directory, like 'sudo ln -s /usr/bin/nssbackup /etc/cron.hourly'.
yes in this case i should use à link (you agree), but my question is : when we want to program a backup at 23h 10 every day for example. If we add a basical link, the backup will be done every hour but not at 23h10. How can i add the hour, the personalised contab's parameter ?
I must find an easy solution to solve this problem because the program will be used by inexperienced people and the more is simple the less there will have error.
jonathan
Revision history for this message
![]() |
#10 |
lastico wrote:
> Question #62814 on NSsbackup changed:
> https:/
>
> lastico proposed the following answer:
> thanks for your rapid answer,
>
>> The simpler solution might be to create a link in the /etc/cron.hourly
>> directory, like 'sudo ln -s /usr/bin/nssbackup /etc/cron.hourly'.
>
> yes in this case i should use à link (you agree), but my question is :
> when we want to program a backup at 23h 10 every day for example. If we
> add a basical link, the backup will be done every hour but not at 23h10.
> How can i add the hour, the personalised contab's parameter ?
>
> I must find an easy solution to solve this problem because the program
> will be used by inexperienced people and the more is simple the less
> there will have error.
You can (should be able to) set this from the nssbackup gui, if you run
as root (gksudo or sudo).
Otherwise, there are graphical (user) crontab editors.
--
Groetjes,
Anton
_____________ _______
| | |
| _ _ ___,| K. Anton Feenstra |
| / \ / \'| | | IBIVU/Bioinform
|( | )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands |
| \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 |
| | <email address hidden> - www.few.
| | "I'm Looking for a New Simulation" (Stone Temple |
| | Pilots) |
|______
Revision history for this message
![]() |
#11 |
lastico wrote:
> Question #62814 on NSsbackup changed:
> https:/
>
> lastico proposed the following answer:
> thanks for your rapid answer,
>
>> The simpler solution might be to create a link in the /etc/cron.hourly
>> directory, like 'sudo ln -s /usr/bin/nssbackup /etc/cron.hourly'.
>
> yes in this case i should use à link (you agree), but my question is :
> when we want to program a backup at 23h 10 every day for example. If we
> add a basical link, the backup will be done every hour but not at 23h10.
> How can i add the hour, the personalised contab's parameter ?
>
> I must find an easy solution to solve this problem because the program
> will be used by inexperienced people and the more is simple the less
> there will have error.
You can (should be able to) set this from the nssbackup gui, if you run
as root (gksudo or sudo).
Otherwise, there are graphical (user) crontab editors.
--
Groetjes,
Anton
_____________ _______
| | |
| _ _ ___,| K. Anton Feenstra |
| / \ / \'| | | IBIVU/Bioinform
|( | )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands |
| \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 |
| | <email address hidden> - www.few.
| | "I'm Looking for a New Simulation" (Stone Temple |
| | Pilots) |
|______
Revision history for this message
![]() |
#12 |
>You can (should be able to) set this from the nssbackup gui, if you run
>as root (gksudo or sudo).
yes i know and this what i used up to now. But the problem is : the path used is /usr/share/
>Otherwise, there are graphical (user) crontab editors.
This is the solution i am trying to setup.
Thanks for your help.
jonathan
Revision history for this message
![]() |
#13 |
Sorry for the double post.
I understand your solution. In fact i used the option "précisement à" so the file was created in /etc/crond.d with the corn's parameter. If i use the option "simplement" a link is created as you "predicted". To conclude i agree with your soltuion in this case.
If it could help some people :
http://
(sorry but in french or quite )
Once more time : thanks for your help
Jonathan
Revision history for this message
![]() |
#14 |
To solve the problem, I get the source of nssbackup and i modified them. Now the target of the link is /usr/local/
Think to install the packet : exim4
You can install by this packet : http://
hopping it could help
jonathan
Revision history for this message
![]() |
#15 |
It still does not work. I tried several ways of setting the time using the GUI (daily simple, daily precise, custom). Also, after setting a time, the next time I load the tab, "custom" is selected and the time is shown in the manual cron line (at least the correct time is shown now). I also tried using a profile to see if that works - no success. Ssbackup won't do any scheduled backups at all.
Any idea?
Revision history for this message
![]() |
#16 |
To solve this problem i added a line with crontab -e
Can you help with this problem?
Provide an answer of your own, or ask ablu for more information if necessary.