WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: what do you think about adding bootcode backup[=time]?  (Read 13426 times)

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
what do you think about adding bootcode backup[=time]?
« on: August 19, 2012, 10:32:50 AM »
to automatically backup was made after a preset time
or by default if don't specify time then backup was made each 45 minutes for example
of course it can do as separate extension but it seems to me that would be nice have it in core
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11670
Re: what do you think about adding bootcode backup[=time]?
« Reply #1 on: August 19, 2012, 10:37:43 AM »
Hi AbNoRMiS
Maybe you could use  cron  for that?

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #2 on: August 19, 2012, 10:47:30 AM »
of course i meant this
already have bootcode cron
but when using bootcode backup (or maybe autosave)
then even automatically add cron task
« Last Edit: August 19, 2012, 10:59:10 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: what do you think about adding bootcode backup[=time]?
« Reply #3 on: August 19, 2012, 01:05:59 PM »
The philosophy is to have core be as small as possible with extensions for added features.
This is not even a new feature as it can be accomplished with the current system using cron.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #4 on: August 19, 2012, 01:45:11 PM »
i think that it will add three or only two additional lines to /etc/init.d/tc-config ;)
but it will be convenient for beginners who may even not know what is this cron
by the way as simple example i also never have worked with cron
but if you want i could make and submit these three rows for your consideration
or can someone else will want to do this :)
« Last Edit: August 19, 2012, 01:56:47 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: what do you think about adding bootcode backup[=time]?
« Reply #5 on: August 19, 2012, 02:54:36 PM »
Why don't you write a wiki article on how to automate timed updates using cron?

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #6 on: August 19, 2012, 03:43:58 PM »
can you meant not updates but an automatic backup? :)
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: what do you think about adding bootcode backup[=time]?
« Reply #7 on: August 19, 2012, 03:51:48 PM »
Yes, I meant to say backups.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #8 on: August 20, 2012, 09:04:37 PM »
are you mocking me? why do it?
if after added only one bootcode
it will become never needed
« Last Edit: August 20, 2012, 09:15:56 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: what do you think about adding bootcode backup[=time]?
« Reply #9 on: August 20, 2012, 09:08:07 PM »
No I am not mocking you.
Adding a boot option is much more involved than adding 3 or 2 lines of code.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11670
Re: what do you think about adding bootcode backup[=time]?
« Reply #10 on: August 20, 2012, 09:09:04 PM »
Hi AbNoRMiS
I see nothing that looks like mocking in this thread.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #11 on: August 20, 2012, 09:38:02 PM »
sorry for the misunderstanding
but i have two questions for which i have only one answer
how many additional lines took bootcode cron?
Quote
tc@box:~$ grep -ni cron /etc/init.d/tc-config
87:            cron) CRON=1 ;;
577:[ -n "$CRON" ] && /etc/init.d/services/crond start
two
why they was added if may add just one to /opt/localboot.sh ?
....

p.s.
and one more question
someone of tinycore users usually uses bootcode cron?
« Last Edit: August 20, 2012, 10:02:39 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: what do you think about adding bootcode backup[=time]?
« Reply #12 on: August 20, 2012, 10:32:25 PM »
You are ignoring all the rest of the code that those two lines start.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: what do you think about adding bootcode backup[=time]?
« Reply #13 on: August 20, 2012, 11:33:01 PM »
sorry, we do not talk about it
this (rest of) code is already included in core
and does its job if needed
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline ananix

  • Full Member
  • ***
  • Posts: 174
Re: what do you think about adding bootcode backup[=time]?
« Reply #14 on: August 21, 2012, 11:16:14 AM »
to automatically backup was made after a preset time
or by default if don't specify time then backup was made each 45 minutes for example
of course it can do as separate extension but it seems to me that would be nice have it in core

  I dont like the idea.

  Boot options should only be for things needed to boot the system properly and not to setup an entire system to user preferences. Thats my princip to be specific to your surgestion i would really not like my backup to be overwritten with files which state i have not cleared! One nice thing with tiny core is that when you boot you have a fresh system from your "commit point". I also like TCL to be as stripped as possible and not with all kinda default features. I really really like i know what im getting and work my way up to what i need instead of the oposit. mosecure vs lesecure. From that point on one can make own distributions with ones own default setups.

Also how would this default feature effect unwritable systems or dump terminals?

  -- Regards ananix