Author Topic: Running 'Luckybackup' From A 'Crond' Job----- (solved)  (Read 601 times)

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Running 'Luckybackup' From A 'Crond' Job----- (solved)
« on: April 25, 2012, 06:21:27 PM »
Edit.. MAKE SURE YOUR .ssh DIRECTORIES (700) AND FILES (600) HAVE THE CORRECT PERMISSIONS FOR ALL YOUR  MACHINES  ;)

I have set two test machines up to try this set up.
One is the back up storage and the other is the one that supplying the back up files.
I have got Luckybackup set to do a 'Manual' back up via ssh over my network to the other machine and that works ok.
Now the problem is that I have set luckybackup to run as a 'crond' job on 'boot up' with 60sec delay...But it does Not work. !
I have got rsync, sshd & crond  to start at boot in pcc.
I have installed 'Webmin' and can view the crond jobs there and have tried getting my luckybackup crond job to run, well it says its started and after a sort time it come back with 'Can not run the task'

I read one of the old posts (2011) and it said about there was a broken file or a missing package or something.

Any advice please.
« Last Edit: May 15, 2012, 03:59:38 AM by pclinmike »
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Running 'Luckybackup' From A 'Crond' Job----- Help Wanted Please.
« Reply #1 on: April 25, 2012, 07:40:48 PM »
I have set two test machines up to try this set up.
One is the back up storage and the other is the one that supplying the back up files.
I have got Luckybackup set to do a 'Manual' back up via ssh over my network to the other machine and that works ok.
Now the problem is that I have set luckybackup to run as a 'crond' job on 'boot up' with 60sec delay...But it does Not work. !
I have got rsync, sshd & crond  to start at boot in pcc.
I have installed 'Webmin' and can view the crond jobs there and have tried getting my luckybackup crond job to run, well it says its started and after a sort time it come back with 'Can not run the task'

I read one of the old posts (2011) and it said about there was a broken file or a missing package or something.

Any advice please.

what does it show in the errors.log

/var/log/cron/errors.log




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Good reminder to look at logs. Thanks

Cron log said it ran  ;D

Luckybackup log said it tried to run but with errors  :-\

I think I have to set up the ssh without a password again as there is a problem.

Question 1.... when a 'cron job' runs does it do it in the background or will it bring the GUI on the users desktop ?.

Question 2...... when you set up a 'ssh-keygen' and then send it to the remote machine, do you have to be logged on with the same credentials ?
eg, if I used user = 'pclinmike' on both machines , but what if I use user 'pclinmike' on one machine and user 'mike' on the
other, would that work as well.?

Question  3... why has using ssh changed my permissions ? also some of my programs do not work like firefox, this has happened on two machines now. :'(
Using 'Bash' I get

chmod: changing permissions of `/home/pclinmike/tmp': Operation not permitted
[pclinmike@localhost ~]$





                    
« Last Edit: April 27, 2012, 06:37:51 PM by pclinmike »
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Running 'Luckybackup' From A 'Crond' Job----- Help Wanted Please.
« Reply #3 on: April 27, 2012, 05:24:10 PM »
One question at a time, please. Question 1: cron runs in the background. Tasks do not show on the root screen. Question 2: Don't understand the question as stated and I'm getting hungry. Question 3: What makes you believe ssh changed the permissions on a folder in your local home directory?

ls -l ~/ | grep tmp

Some of your programs do not work the way Firefox does? Should they?
« Last Edit: April 27, 2012, 05:26:46 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: Running 'Luckybackup' From A 'Crond' Job----- Help Wanted Please.
« Reply #4 on: April 27, 2012, 06:36:45 PM »
One question at a time, please. Question 1: cron runs in the background. Tasks do not show on the root screen. Question 2: Don't understand the question as stated and I'm getting hungry. Question 3: What makes you believe ssh changed the permissions on a folder in your local home directory?

ls -l ~/ | grep tmp

Some of your programs do not work the way Firefox does? Should they?

Question Question 3 first.
Bash..
chmod: changing permissions of `/home/pclinmike/tmp': Operation not permitted
[pclinmike@localhost ~]$ ls -l ~/ | grep tmp
drwxr-xr-x  2 root root   48 Apr 27 20:46 tmp/
[pclinmike@localhost ~]$

Question  3... why has using ssh changed my permissions ? also some of my programs do not work eg firefox, (this has happened on two machines now).

Question 2
When using ssh between two machines do you have to have the same users on both ?
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Running 'Luckybackup' From A 'Crond' Job----- Help Wanted Please.
« Reply #5 on: April 27, 2012, 10:16:34 PM »
One question at a time, please. Question 1: cron runs in the background. Tasks do not show on the root screen. Question 2: Don't understand the question as stated and I'm getting hungry. Question 3: What makes you believe ssh changed the permissions on a folder in your local home directory?

ls -l ~/ | grep tmp

Some of your programs do not work the way Firefox does? Should they?

Question Question 3 first.
Bash..
chmod: changing permissions of `/home/pclinmike/tmp': Operation not permitted


If you look /home/pclinmike/tmp is a soft link pointing to /tmp which is owned by root.  So it is of no surprise that you got "Operation not permitted".

Quote


[pclinmike@localhost ~]$ ls -l ~/ | grep tmp
drwxr-xr-x  2 root root   48 Apr 27 20:46 tmp/
[pclinmike@localhost ~]$
[/i]
Question  3... why has using ssh changed my permissions ? also some of my programs do not work eg firefox, (this has happened on two machines now).

Question 2
When using ssh between two machines do you have to have the same users on both ?

On question 2 - Not if you know the username and password of the machine you are ssh'ing into.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!