Skip to main content

Thread: Task in Gnome-schedule did not run


how come scheduled tasks don't run?

have nightly backup routine programmed gnome scheduler gui interface cron. don't understand damn thing cron or crontabs, , given thick head, reading them has done little change sorry situation. thankful ubuntu includes graphical interfaces that, instead of using command line interfaces, eating ice cream hammer , tongs, can use spoon god intended.

have, however, run successful rsync backups using gnome-scheduler, logged in myself instead of root. had errors because did not have rights various files. figured i'd need run program root make problem go away, , amazingly enough able start gnome-schedule root, , program same things that. quite proud of myself, fixed wonderful cup of tea celebrate, since had no idea how of short time ago. same command line, ran scheduled last night, should run tonight, no?

morning check backup drive, , new files created yesterday don't appear.

here little info chew on:

task supposed run @ midnight every night, , command line task this
code:
rsync -r -t -p -g -v --progress -c --partial -s /home /media/d7e36745-6bbc-4ba6-ada0-03a7d1a7f74c/rsyncbackup
believe backup in /home users, @ least tried when me (not root) setting task run.

there message "tasks run in home directory" don't understand implications of, when finish creating command in gnome scheduler. above line of gibberish work correctly when root doing task?

code:
note working directory of executed tasks:  recurrent tasks run home directory.
just fun took peek @ file "root" in var/spool/cron/crontabs:

code:
# not edit file - edit master , reinstall. # (/tmp/tmpq1c3dz installed on thu dec 29 20:47:10 2011) # (cron version -- $id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie exp $) 0 0 * * * rsync -r -t -p -g -v --progress -c --partial -s /home /media/d7e36745-6bbc-4ba6-ada0-03a7d1a7f74c/rsyncbackup # job_id_1 0 0 * * * rsync -r -t -p -g -v --progress -c --partial -s /etc /media/d7e36745-6bbc-4ba6-ada0-03a7d1a7f74c/rsyncbackup # job_id_2
bear in mind haven't slightest idea of gibberish means, , quite proud of myself finding out such file existed. not understand cron enough set via command line, , after reading it, , coming away confused, despair ever so. there hints in file indicate why task did not run?

personally put rsync line (+sudo) bash script, drop whole thing /etc/cron/daily, mark excutable , leave @ that. no need make things overcomplicated.

so:
code:
gksu gedit /etc/cron/daily/backup
enter #!/bin/bash on first line paste in rsync line sudo. ctrl-s save, then.
code:
sudo chmod +x /etc/cron/daily/backup
to check runs alright can force run:
code:
./etc/cron/daily/backup


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Task in Gnome-schedule did not run


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account