Is it possible to backup all my Nautilus personalized icons?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I like to personalize my Nautilus
icons from folders and files with images.
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
add a comment |Â
up vote
2
down vote
favorite
I like to personalize my Nautilus
icons from folders and files with images.
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
Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.
â DK Bose
May 16 at 4:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 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 at 13:29
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I like to personalize my Nautilus
icons from folders and files with images.
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
I like to personalize my Nautilus
icons from folders and files with images.
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
edited May 25 at 19:35
asked May 16 at 1:36
![](https://i.stack.imgur.com/SjeyK.jpg?s=32&g=1)
![](https://i.stack.imgur.com/SjeyK.jpg?s=32&g=1)
Ramuyko
413518
413518
Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.
â DK Bose
May 16 at 4:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 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 at 13:29
add a comment |Â
Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.
â DK Bose
May 16 at 4:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 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 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 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 at 4:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 at 1:13
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 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 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 at 13:29
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
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=~/folderToInsertIconsRecursively
iconsFolder=~/.icons;
file=$(mktemp)
ls -R $folderToBeUpdated | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file
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:
- The path of a folder full of icons (
iconsFolder
) - 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.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
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=~/folderToInsertIconsRecursively
iconsFolder=~/.icons;
file=$(mktemp)
ls -R $folderToBeUpdated | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file
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:
- The path of a folder full of icons (
iconsFolder
) - 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.
add a comment |Â
up vote
1
down vote
accepted
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=~/folderToInsertIconsRecursively
iconsFolder=~/.icons;
file=$(mktemp)
ls -R $folderToBeUpdated | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file
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:
- The path of a folder full of icons (
iconsFolder
) - 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.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
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=~/folderToInsertIconsRecursively
iconsFolder=~/.icons;
file=$(mktemp)
ls -R $folderToBeUpdated | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file
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:
- The path of a folder full of icons (
iconsFolder
) - 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.
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=~/folderToInsertIconsRecursively
iconsFolder=~/.icons;
file=$(mktemp)
ls -R $folderToBeUpdated | awk '
/:$/&&fs=$0;f=0
/:$/&&!fsub(/:$/,"");s=$0;f=1;next
NF&&f print s"/"$0 ' > $file
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:
- The path of a folder full of icons (
iconsFolder
) - 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.
edited May 26 at 4:16
answered May 25 at 19:03
![](https://i.stack.imgur.com/SjeyK.jpg?s=32&g=1)
![](https://i.stack.imgur.com/SjeyK.jpg?s=32&g=1)
Ramuyko
413518
413518
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please mention your OS version, desktop environment, and version of Nautilus. Nautilus has had features added/removed rather frequently.
â DK Bose
May 16 at 4:21
@DKBose I'm running Ubuntu 16.04 with Unity and the version of Nautilus is 3.14.3.
â Ramuyko
May 16 at 12:21
Possible duplicate of How can I programmatically change a file's icon?
â db429
May 17 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 at 13:29