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