[opensuse] Location of user crontab?
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup. Bob -- Bob Williams System: Linux 4.4.92-31-default Distro: openSUSE 42.3 (x86_64) Desktop: KDE Frameworks: 5.32.0, Qt: 5.6.2 and Plasma: 5.8.7
Bob Williams wrote:
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup.
/var/spool/cron/tabs/ -- Per Jessen, Zürich (1.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 06 Dec 2017 10:59:59 +0100 Per Jessen <per@computer.org> wrote:
Bob Williams wrote:
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup.
/var/spool/cron/tabs/
Thank you -- Bob Williams System: Linux 4.4.92-31-default Distro: openSUSE 42.3 (x86_64) Desktop: KDE Frameworks: 5.32.0, Qt: 5.6.2 and Plasma: 5.8.7
Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams:
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup.
Bob
As the user concerned do su -c 'crontab -u USER -l > /home/USER/some_folder/some_file_name' and to restore do su -c 'crontab -u USER < /home/USER/some_folder/some_file_name' You could write a small script to dump each user's crontab in some hidden folder his/her homedir - Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 06 Dec 2017 11:30:01 +0100 Knurpht - Gertjan Lettink <knurpht@opensuse.org> wrote:
Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams:
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup.
Bob
As the user concerned do su -c 'crontab -u USER -l > /home/USER/some_folder/some_file_name' and to restore do su -c 'crontab -u USER < /home/USER/some_folder/some_file_name'
You could write a small script to dump each user's crontab in some hidden folder his/her homedir - Gertjan Lettink, a.k.a. Knurpht
openSUSE Board Member openSUSE Forums Team
Good idea. Thank you. -- Bob Williams System: Linux 4.4.92-31-default Distro: openSUSE 42.3 (x86_64) Desktop: KDE Frameworks: 5.32.0, Qt: 5.6.2 and Plasma: 5.8.7
Hi, all -- ...and then Knurpht - Gertjan Lettink said... % % Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams: % > Where does my user crontab get stored? I have to reconstruct it each time I ... % % As the user concerned do % su -c 'crontab -u USER -l > /home/USER/some_folder/some_file_name' ... % % You could write a small script to dump each user's crontab in some hidden % folder his/her homedir My first crontab entry is always 04 04 * * * crontab -l >$HOME/.crontab-l :-) Happy Holidays :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06-12-17 13:29, David T-G wrote:
Hi, all --
...and then Knurpht - Gertjan Lettink said... % % Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams: % > Where does my user crontab get stored? I have to reconstruct it each time I ... % % As the user concerned do % su -c 'crontab -u USER -l > /home/USER/some_folder/some_file_name' ... % % You could write a small script to dump each user's crontab in some hidden % folder his/her homedir
My first crontab entry is always
04 04 * * * crontab -l >$HOME/.crontab-l
:-)
You should NOT do that is the output of 'crontab -l' is: 'no crontab for USER' ;) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 6 Dec 2017 07:29:18 -0500 David T-G <d13@justpickone.org> wrote:
Hi, all --
...and then Knurpht - Gertjan Lettink said... % % Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams: % > Where does my user crontab get stored? I have to reconstruct it % > each time I ... % % As the user concerned do % su -c 'crontab -u USER -l % > /home/USER/some_folder/some_file_name' ... % % You could write a small script to dump each user's crontab in some % hidden folder his/her homedir
My first crontab entry is always
04 04 * * * crontab -l >$HOME/.crontab-l
:-)
Happy Holidays
:-D
Very neat! :-) -- Bob Williams System: Linux 4.4.92-31-default Distro: openSUSE 42.3 (x86_64) Desktop: KDE Frameworks: 5.32.0, Qt: 5.6.2 and Plasma: 5.8.7
Bob, et al -- ...and then Bob Williams said... % % On Wed, 6 Dec 2017 07:29:18 -0500 % David T-G <d13@justpickone.org> wrote: % % > My first crontab entry is always % > % > 04 04 * * * crontab -l >$HOME/.crontab-l % % Very neat! :-) Thanks! Saved my butt more than once. HH :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06-12-17 11:30, Knurpht - Gertjan Lettink wrote:
Op woensdag 6 december 2017 10:37:40 CET schreef Bob Williams:
Where does my user crontab get stored? I have to reconstruct it each time I reinstall the system, so I thought I should add it to my backup.
Bob As the user concerned do su -c 'crontab -u USER -l > /home/USER/some_folder/some_file_name' and to restore do su -c 'crontab -u USER < /home/USER/some_folder/some_file_name'
You could write a small script to dump each user's crontab in some hidden folder his/her homedir - Gertjan Lettink, a.k.a. Knurpht
openSUSE Board Member openSUSE Forums Team
I do not think you need su -c to do that? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Bob Williams
-
David T-G
-
Knurpht - Gertjan Lettink
-
Luuk
-
Per Jessen