Can I Recover Firefox and Tor Bookmarks?

125

In fact, you just have to copy the folder "firefox" and all its content. This folder is located in the hidden folder ".mozilla" of your personal folder (/home/username/).

On another operating system (Linux, Mac or Windows), you just have to launch Mozilla Firefox once. Then close it and copy the profile folder (xxxxxx.default) from the "firefox" backup folder in the corresponding "firefox" folder for your platform. After that, I recommend you to edit "profiles.ini" and replace the "Path" value by the name of the profile folder copied instead of overwriting that file with the one from the backup.

On Windows 7/8/8.1, you'll find "firefox" folder (containing profiles) in "C:\Users\username\AppData\Roaming\Mozilla\".

That's what I use very often to do the contrary (migrating from Windows or Mac to Linux).

P.S.: Please note that you may have to replace add-ons which are designed for Linux by the ones designed for your platform.

Share:
125

Related videos on Youtube

NineCattoRules
Author by

NineCattoRules

Updated on September 18, 2022

Comments

  • NineCattoRules
    NineCattoRules almost 2 years

    My request PHP file elaborates some Ajax POST data:

    POST data

    data[0][id]:359
    data[0][position]:1
    data[1][id]:321
    data[1][position]:2
    data[2][id]:354
    data[2][position]:3
    

    Request.php

    if(isset($_POST['data'])) {
        if(isset($_SESSION['username']) && isset($_SESSION['password'])) {
    
            $verify = $loggedIn->verify();
    
            if($verify['username']) {
                $Profile = new Profile();
                $Profile->db = $db;
                //Call my function
                $messages = $Profile->setOrder($_POST['data']);     
    
            }
        }
    }
    

    Profile.php

    function setOrder($post) {
        var_dump($post);
    
        foreach($post as $item)
        {
            return "Area ID ".$item["id"]." and person located ".$item["position"]."<br />";
        }
    }
    

    My function returns nothing and the dump of $post is as below

    array(3) {
      [0]=>
      array(2) {
        ["id"]=>
        string(3) "359"
        ["position"]=>
        string(1) "1"
      }
      [1]=>
      array(2) {
        ["id"]=>
        string(3) "321"
        ["position"]=>
        string(1) "2"
      }
      [2]=>
      array(2) {
        ["id"]=>
        string(3) "354"
        ["position"]=>
        string(1) "3"
      }
    }
    

    Inside my function I can dump correctly something like var_dump($post[0]["id"]); so why my foreach loop is empty?

    • Golboth
      Golboth about 10 years
      If you don't see the graphical login screen, you might be facing some problems with the drivers used for your graphic card. Trying another one might be a solution. In some very rare cases, I replaced the graphic card which was badly supported by another cheap one very well supported...
    • Peter Rakmanyi
      Peter Rakmanyi over 6 years
      Try to var_dump($item); inside the loop. Maybe it will reveal something.
    • CD001
      CD001 over 6 years
      You're not actually telling your foreach() to output anything, merely return - which will assign that string to $messages = $Profile->setOrder($_POST['data']); and terminate the loop.
    • Sebastian Brosch
      Sebastian Brosch over 6 years
      you don't loop because return breaks the loop
    • Peter Rakmanyi
      Peter Rakmanyi over 6 years
      I missed the return. Do you want to echo?
  • Andy Ibanez
    Andy Ibanez about 10 years
    Wish I knew that so I could have configured this when my Linux box worked.
  • Uttam Pal
    Uttam Pal about 10 years
    Oh, sorry I missed the point that you cannot log in.
  • Uttam Pal
    Uttam Pal about 10 years
    All your firefox settings are there in the hidden ~/.mozilla directory. There within this you'll also find a directory called "bookmarkbackups" that contains time to time backup of all your bookmarks as *.jason files. Hope that helps.
  • Andy Ibanez
    Andy Ibanez about 10 years
    Thanks, I will give this answer a go as soon as I start settings things up again. Add-ons are not a problem since I never used them.