Is it possible to backup all my Nautilus personalized icons?How can I programmatically change a file's icon?How can I set portable icons in Nautilus?Where does Gnome/Nautilus store directory iconsmimetypes icons missing in nautilusIgnore certain dotfiles from backupNautilus keeps re-creating thumbnailsMake nautilus to adjust icons sizeNemo / Nautilus folder icon sizeNautilus libraries disappeared after changing languageFiles (Nautilus) icons not appearing with Numix Square icon theme on Ubuntu 18.04 LTS with Unity desktop

How to not lose focus after each disruption in flow

Wiring a pole barn that is 750' from my main power box

Can you decide not to sneak into a room after seeing your roll?

how do you value what your leisure time is worth?

How to make a gift without seeming creepy?

Why did a young George Washington sign a document admitting to assassinating a French military officer?

My first random password generator

Why do English transliterations of Arabic names have so many Qs in them?

How to discipline overeager engineer

Is there a reason behind the 'Ending' joke?

Modify real part and leaves imaginary part unchanged

Why did Batman design Robin's suit with only the underwear without pants?

Fill the Image Sequence Ep. 2

Why CMYK & PNG is not possible?

Is there any way today to recover/dump 2M disks?

Can you be promoted and then fired for-cause? (Performance)

Test if two food are the same

Is it fine to ask this kind of question to the corresponding author of a paper?

Chain with double bond or triple bond

A demigod among men

What is this plane with its thick cockpit?

Forced Conversion of Majority

Consecutive numbers that are Manhattan distance 3 apart

Why is the intercept changing in a logistic regression when all predictors are standardized?



Is it possible to backup all my Nautilus personalized icons?


How can I programmatically change a file's icon?How can I set portable icons in Nautilus?Where does Gnome/Nautilus store directory iconsmimetypes icons missing in nautilusIgnore certain dotfiles from backupNautilus keeps re-creating thumbnailsMake nautilus to adjust icons sizeNemo / Nautilus folder icon sizeNautilus libraries disappeared after changing languageFiles (Nautilus) icons not appearing with Numix Square icon theme on Ubuntu 18.04 LTS with Unity desktop






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2

















I like to personalize my Nautilus icons from folders and files with images.



enter image description here



The problem is that all the times that I format my computer I lose all the icons that I've worked so hard to organize. So, is there a way to backup all these personalized "thumbnails" that I've been using on Nautilus? Where are they stored? Can I backup the configuration from a specific folder and then replicate it on a different computer that uses Nautilus and has the same folder structure?










share|improve this question




























  • Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

    – DK Bose
    May 16 '18 at 4:21











  • @DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

    – Rafael Muynarsk
    May 16 '18 at 12:21












  • Possible duplicate of How can I programmatically change a file's icon?

    – db429
    May 17 '18 at 1:13











  • @db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

    – David Foerster
    May 17 '18 at 13:29

















2

















I like to personalize my Nautilus icons from folders and files with images.



enter image description here



The problem is that all the times that I format my computer I lose all the icons that I've worked so hard to organize. So, is there a way to backup all these personalized "thumbnails" that I've been using on Nautilus? Where are they stored? Can I backup the configuration from a specific folder and then replicate it on a different computer that uses Nautilus and has the same folder structure?










share|improve this question




























  • Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

    – DK Bose
    May 16 '18 at 4:21











  • @DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

    – Rafael Muynarsk
    May 16 '18 at 12:21












  • Possible duplicate of How can I programmatically change a file's icon?

    – db429
    May 17 '18 at 1:13











  • @db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

    – David Foerster
    May 17 '18 at 13:29













2












2








2








I like to personalize my Nautilus icons from folders and files with images.



enter image description here



The problem is that all the times that I format my computer I lose all the icons that I've worked so hard to organize. So, is there a way to backup all these personalized "thumbnails" that I've been using on Nautilus? Where are they stored? Can I backup the configuration from a specific folder and then replicate it on a different computer that uses Nautilus and has the same folder structure?










share|improve this question
















I like to personalize my Nautilus icons from folders and files with images.



enter image description here



The problem is that all the times that I format my computer I lose all the icons that I've worked so hard to organize. So, is there a way to backup all these personalized "thumbnails" that I've been using on Nautilus? Where are they stored? Can I backup the configuration from a specific folder and then replicate it on a different computer that uses Nautilus and has the same folder structure?







scripts nautilus icons backup productivity






share|improve this question















share|improve this question













share|improve this question




share|improve this question



share|improve this question








edited May 25 '18 at 19:35







Rafael Muynarsk

















asked May 16 '18 at 1:36









Rafael MuynarskRafael Muynarsk

7156 silver badges23 bronze badges




7156 silver badges23 bronze badges















  • Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

    – DK Bose
    May 16 '18 at 4:21











  • @DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

    – Rafael Muynarsk
    May 16 '18 at 12:21












  • Possible duplicate of How can I programmatically change a file's icon?

    – db429
    May 17 '18 at 1:13











  • @db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

    – David Foerster
    May 17 '18 at 13:29

















  • Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

    – DK Bose
    May 16 '18 at 4:21











  • @DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

    – Rafael Muynarsk
    May 16 '18 at 12:21












  • Possible duplicate of How can I programmatically change a file's icon?

    – db429
    May 17 '18 at 1:13











  • @db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

    – David Foerster
    May 17 '18 at 13:29
















Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

– DK Bose
May 16 '18 at 4:21





Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.

– DK Bose
May 16 '18 at 4:21













@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

– Rafael Muynarsk
May 16 '18 at 12:21






@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.

– Rafael Muynarsk
May 16 '18 at 12:21














Possible duplicate of How can I programmatically change a file's icon?

– db429
May 17 '18 at 1:13





Possible duplicate of How can I programmatically change a file's icon?

– db429
May 17 '18 at 1:13













@db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

– David Foerster
May 17 '18 at 13:29





@db429: While that does explain quite a few things about the topic in question a way to back-up custom file icons is not among them

– David Foerster
May 17 '18 at 13:29










1 Answer
1






active

oldest

votes


















1


















I've ended up creating a script to solve my problem. That's not exactly a backup solution but it works for me.



#!/bin/bash

folderToBeUpdated="$HOME/folderToInsertIconsRecursively"
iconsFolder="$HOME/.icons"

file="$(mktemp)"

# Generate a recursive list of all folders and files inside the folder $folderToBeUpdated
ls -R "$folderToBeUpdated" | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file

# Start inserting icons dynamically on files and folders
while IFS='' read -r line || [[ -n "$line" ]]; do
folderName="$(basename "$line")"
pathName="$(dirname "$line")"
if [ -f "$iconsFolder"/"$folderName".png ]
then
gvfs-set-attribute -t string "$pathName/$folderName" metadata::custom-icon "file://$iconsFolder/$folderName.png"
fi
done < $file


The idea of this script is that we need to give it the path of two folders:



  1. The path of a folder full of icons (iconsFolder)

  2. The path of the folder we wish to put icons recursively (folderToBeUpdated)

The script will check the icons and the folders with the same name and then it will insert icons on specific folders in case that's true, e.g a folder inside folderToBeUpdated is called example and I have an icon called example.png inside my iconsFolder, so the icon example.png will be inserted as the folder example's icon (if the name isn't the same the script won't do anything).



PS: It's necessary to press F5 after running the script in order to see the icons.




That's just a functional script but it turns out to be useful because I can easily replicate my icons on different computers. In any case, if anyone knows a way to do backups of icons in a more convenient way, feel free to write a new answer or give suggestions in the comments.






share|improve this answer





























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036762%2fis-it-possible-to-backup-all-my-nautilus-personalized-icons%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1


















    I've ended up creating a script to solve my problem. That's not exactly a backup solution but it works for me.



    #!/bin/bash

    folderToBeUpdated="$HOME/folderToInsertIconsRecursively"
    iconsFolder="$HOME/.icons"

    file="$(mktemp)"

    # Generate a recursive list of all folders and files inside the folder $folderToBeUpdated
    ls -R "$folderToBeUpdated" | awk '
    /:$/&&fs=$0;f=0
    /:$/&&!fsub(/:$/,"");s=$0;f=1;next
    NF&&f print s"/"$0 ' > $file

    # Start inserting icons dynamically on files and folders
    while IFS='' read -r line || [[ -n "$line" ]]; do
    folderName="$(basename "$line")"
    pathName="$(dirname "$line")"
    if [ -f "$iconsFolder"/"$folderName".png ]
    then
    gvfs-set-attribute -t string "$pathName/$folderName" metadata::custom-icon "file://$iconsFolder/$folderName.png"
    fi
    done < $file


    The idea of this script is that we need to give it the path of two folders:



    1. The path of a folder full of icons (iconsFolder)

    2. The path of the folder we wish to put icons recursively (folderToBeUpdated)

    The script will check the icons and the folders with the same name and then it will insert icons on specific folders in case that's true, e.g a folder inside folderToBeUpdated is called example and I have an icon called example.png inside my iconsFolder, so the icon example.png will be inserted as the folder example's icon (if the name isn't the same the script won't do anything).



    PS: It's necessary to press F5 after running the script in order to see the icons.




    That's just a functional script but it turns out to be useful because I can easily replicate my icons on different computers. In any case, if anyone knows a way to do backups of icons in a more convenient way, feel free to write a new answer or give suggestions in the comments.






    share|improve this answer
































      1


















      I've ended up creating a script to solve my problem. That's not exactly a backup solution but it works for me.



      #!/bin/bash

      folderToBeUpdated="$HOME/folderToInsertIconsRecursively"
      iconsFolder="$HOME/.icons"

      file="$(mktemp)"

      # Generate a recursive list of all folders and files inside the folder $folderToBeUpdated
      ls -R "$folderToBeUpdated" | awk '
      /:$/&&fs=$0;f=0
      /:$/&&!fsub(/:$/,"");s=$0;f=1;next
      NF&&f print s"/"$0 ' > $file

      # Start inserting icons dynamically on files and folders
      while IFS='' read -r line || [[ -n "$line" ]]; do
      folderName="$(basename "$line")"
      pathName="$(dirname "$line")"
      if [ -f "$iconsFolder"/"$folderName".png ]
      then
      gvfs-set-attribute -t string "$pathName/$folderName" metadata::custom-icon "file://$iconsFolder/$folderName.png"
      fi
      done < $file


      The idea of this script is that we need to give it the path of two folders:



      1. The path of a folder full of icons (iconsFolder)

      2. The path of the folder we wish to put icons recursively (folderToBeUpdated)

      The script will check the icons and the folders with the same name and then it will insert icons on specific folders in case that's true, e.g a folder inside folderToBeUpdated is called example and I have an icon called example.png inside my iconsFolder, so the icon example.png will be inserted as the folder example's icon (if the name isn't the same the script won't do anything).



      PS: It's necessary to press F5 after running the script in order to see the icons.




      That's just a functional script but it turns out to be useful because I can easily replicate my icons on different computers. In any case, if anyone knows a way to do backups of icons in a more convenient way, feel free to write a new answer or give suggestions in the comments.






      share|improve this answer






























        1














        1










        1









        I've ended up creating a script to solve my problem. That's not exactly a backup solution but it works for me.



        #!/bin/bash

        folderToBeUpdated="$HOME/folderToInsertIconsRecursively"
        iconsFolder="$HOME/.icons"

        file="$(mktemp)"

        # Generate a recursive list of all folders and files inside the folder $folderToBeUpdated
        ls -R "$folderToBeUpdated" | awk '
        /:$/&&fs=$0;f=0
        /:$/&&!fsub(/:$/,"");s=$0;f=1;next
        NF&&f print s"/"$0 ' > $file

        # Start inserting icons dynamically on files and folders
        while IFS='' read -r line || [[ -n "$line" ]]; do
        folderName="$(basename "$line")"
        pathName="$(dirname "$line")"
        if [ -f "$iconsFolder"/"$folderName".png ]
        then
        gvfs-set-attribute -t string "$pathName/$folderName" metadata::custom-icon "file://$iconsFolder/$folderName.png"
        fi
        done < $file


        The idea of this script is that we need to give it the path of two folders:



        1. The path of a folder full of icons (iconsFolder)

        2. The path of the folder we wish to put icons recursively (folderToBeUpdated)

        The script will check the icons and the folders with the same name and then it will insert icons on specific folders in case that's true, e.g a folder inside folderToBeUpdated is called example and I have an icon called example.png inside my iconsFolder, so the icon example.png will be inserted as the folder example's icon (if the name isn't the same the script won't do anything).



        PS: It's necessary to press F5 after running the script in order to see the icons.




        That's just a functional script but it turns out to be useful because I can easily replicate my icons on different computers. In any case, if anyone knows a way to do backups of icons in a more convenient way, feel free to write a new answer or give suggestions in the comments.






        share|improve this answer
















        I've ended up creating a script to solve my problem. That's not exactly a backup solution but it works for me.



        #!/bin/bash

        folderToBeUpdated="$HOME/folderToInsertIconsRecursively"
        iconsFolder="$HOME/.icons"

        file="$(mktemp)"

        # Generate a recursive list of all folders and files inside the folder $folderToBeUpdated
        ls -R "$folderToBeUpdated" | awk '
        /:$/&&fs=$0;f=0
        /:$/&&!fsub(/:$/,"");s=$0;f=1;next
        NF&&f print s"/"$0 ' > $file

        # Start inserting icons dynamically on files and folders
        while IFS='' read -r line || [[ -n "$line" ]]; do
        folderName="$(basename "$line")"
        pathName="$(dirname "$line")"
        if [ -f "$iconsFolder"/"$folderName".png ]
        then
        gvfs-set-attribute -t string "$pathName/$folderName" metadata::custom-icon "file://$iconsFolder/$folderName.png"
        fi
        done < $file


        The idea of this script is that we need to give it the path of two folders:



        1. The path of a folder full of icons (iconsFolder)

        2. The path of the folder we wish to put icons recursively (folderToBeUpdated)

        The script will check the icons and the folders with the same name and then it will insert icons on specific folders in case that's true, e.g a folder inside folderToBeUpdated is called example and I have an icon called example.png inside my iconsFolder, so the icon example.png will be inserted as the folder example's icon (if the name isn't the same the script won't do anything).



        PS: It's necessary to press F5 after running the script in order to see the icons.




        That's just a functional script but it turns out to be useful because I can easily replicate my icons on different computers. In any case, if anyone knows a way to do backups of icons in a more convenient way, feel free to write a new answer or give suggestions in the comments.







        share|improve this answer















        share|improve this answer




        share|improve this answer



        share|improve this answer








        edited Apr 18 at 1:31

























        answered May 25 '18 at 19:03









        Rafael MuynarskRafael Muynarsk

        7156 silver badges23 bronze badges




        7156 silver badges23 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036762%2fis-it-possible-to-backup-all-my-nautilus-personalized-icons%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?