• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wipe And Restore

    Scheduled Pinned Locked Moved Solved
    General
    2
    15
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nika
      last edited by Nika

      HI!

      Can i automating FOG for Wipe and Restore a image file automatically.

      I mean… when i wipe hard drive Fog open automatically images restore.

      Sorry about my English. 🙂

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        When FOG restores an image, all previous partitions are deleted. Are you sure that wiping is necessary?

        What version of FOG are you using?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • N
          Nika
          last edited by Nika

          Version FOG 1.2.0

          it’s true all partitions are deleted but not data, with recovery software i can restore some files.

          So i need to WIPE and restore.

          1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            This can be automated on the backend with a crontab event without editing any of FOG’s files. I don’t have time at this very moment to mess with it, but it can be done.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            N 1 Reply Last reply Reply Quote 0
            • N
              Nika @Wayne Workman
              last edited by

              @Wayne-Workman who can i contact if you have not time ?

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @Nika
                last edited by

                @Nika I just don’t have time at the moment (I’m at work). I can look at it tonight.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                N 1 Reply Last reply Reply Quote 0
                • N
                  Nika @Wayne Workman
                  last edited by

                  @Wayne-Workman OH Cool. thank you very much.

                  1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman
                    last edited by Wayne Workman

                    I’m just going to use this thread to jot down some notes while I work on this. It should be very simple though.

                    This is what an instant deployment full-wipe task looks like in FOG 1.2.0

                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    | taskID | taskName | taskCreateTime      | taskCheckIn         | taskHostID | taskStateID | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskPassreset | taskShutdown |
                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    |      2 |          | 2016-01-13 22:31:16 | 0000-00-00 00:00:00 |          1 |           1 | wayne        | 0         | 0000-00-00 00:00:00    |         20 | 0000000000 |         |                 |                   |                |                 |               |              0 |               0 |                 |                0 |               |              |
                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    

                    This is what an instant deployment image task looks like in FOG 1.2.0

                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    | taskID | taskName | taskCreateTime      | taskCheckIn         | taskHostID | taskStateID | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskPassreset | taskShutdown |
                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    |      3 |          | 2016-01-13 22:40:27 | 0000-00-00 00:00:00 |          1 |           1 | wayne        | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              1 |               1 |                 |                0 |               |              |
                    +--------+----------+---------------------+---------------------+------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------------+--------------+
                    

                    So considering the above information, we need to check the tasks table for tasks that have taskTypeID 18, 19 or 20 where taskStateID is 1, 2 or 3.

                    When this is seen, the taskHostID needs noted. When the task disappears, a new imaging task needs created using the image assigned to the host.

                    I did do a full wipe just for testing - after the wiping is started, the taskStateID does not change. Perhaps @Tom-Elliott can see if that’s the case in the current FOG trunk, and if so, hopefully get that fixed before 1.3.0 release. I assume the taskStateID gets set to 4 when it gets done but I’m not sure, I didn’t wait for it to finish.

                    I’ll do more testing Friday night to see if an added task will work when there’s already a current task. If it works, awesome. If not, we will need to edit the wipe tasks I suppose, which means editing the 1.2.0 init.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Nika @Wayne Workman
                      last edited by

                      @Wayne-Workman thank you. i hope it will work.

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        Bumping this thread… I’m planning on working on this tomorrow night.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        N 1 Reply Last reply Reply Quote 1
                        • N
                          Nika @Wayne Workman
                          last edited by

                          @Wayne-Workman so? is solution?

                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @Nika
                            last edited by

                            @Nika Not yet. I didn’t get around to trying. But it can be done.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              Nika @Wayne Workman
                              last edited by

                              @Wayne-Workman can you show me how i can do it please ? i need this .

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman @Nika
                                last edited by Wayne Workman

                                @Nika Just create a root crontab that checks the tasks table every minute. The crontab starts a script that checks the tasks table for tasks that have taskTypeID 18, 19 or 20 where taskStateID is 1, 2 or 3. If it sees that, it should insert an imaging task using the same detected taskHostID with the taskID properly incremented as well.

                                If that doesn’t work, then the init needs modified.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  Nika @Wayne Workman
                                  last edited by

                                  @Wayne-Workman thaks.

                                  1 Reply Last reply Reply Quote 0
                                  • 1 / 1
                                  • First post
                                    Last post

                                  154

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project