Notices


Reply
Thread Tools
Posts: 32 | Thanked: 1 time | Joined on May 2010
#1
Hi,
I have changed a lot of my icons and I would like to copy the folder with all the icons in to make kind of a backup. I have made a folder on the emmc called icons and using xterm I have run the following command:

sudo gainroot
cp \usr\share\icons\* \home\user\MyDocs\icons

but it doesn't work. I get an error - 'omitting directory \usr\share\icons\default' and ''omitting directory \usr\share\icons\hicolor'

Any offers of help?
 
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#2
You should use / instead of \ .
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#3
And perhaps add -r to make it into a recursive copy.

Please keep in mind that you can not create symbolic links under MyDocs.
 
Posts: 32 | Thanked: 1 time | Joined on May 2010
#4
Originally Posted by Joorin View Post
And perhaps add -r to make it into a recursive copy.

Please keep in mind that you can not create symbolic links under MyDocs.

tried -r option and i get plenty of errors stating 'cannot create symlink'

Is there no way to copy all the icons?
 
Posts: 24 | Thanked: 8 times | Joined on Dec 2009
#5
mind that the "*" will copy only non-hidden files (those not beginning with ".")

so either check for them or instead use
cp -r /usr/share/icons /home/user/MyDocs
this will copy the entire folder
 
Posts: 32 | Thanked: 1 time | Joined on May 2010
#6
Anyone got any ideas?
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#7
The obvious solution is to copy the icons you want to a place where symbolic links can be created.

One such place is /home/user . Create a directory there and copy to it. Just keep in mind that the size of this partition is 2GByte and it's used by other applications to store data.
 
Posts: 32 | Thanked: 1 time | Joined on May 2010
#8
How do I then copy from /home/user to a pc via usb?
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#9
OP, your two problems are:
1. backslashes( \ ). These are NOT USED for directory seperation in Linux. In windows, yes, but not in Linux. Use forward-slashes instead( / ) (as ToJa92 already said).
2. no '-r' option for recursive copying. (as Joorin already said).

Do -both- of these things.
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#10
You could also create a zip file instead:
Code:
zip -r /home/user/MyDocs/icons/icon_backup.zip /usr/share/icons
EDIT: The above is ONE line (with a space between the filename and the directory to backup).

And if You want a date/time stamp (day-month-year-hour-minute) on the file too do it like this:
Code:
DATE=`date +%d%m%y-%H%M`
zip -r /home/user/MyDocs/icons/icon_backup-$DATE.zip /usr/share/icons
(That's 2 lines)...

EDIT: zip and unzip commands can be installed using:
Code:
apt-get install zip unzip
(or through the App Manager - search for "zip" in All applications)
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...

Last edited by DrWilken; 2010-07-19 at 10:20.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:49.