Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
cp -R /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files
and I got:
cp: cannot create directory `/Backup/Backup-Fedora-Files': No such file or directory
It seems that it recognizes that ".evolution" is a folder, so far so good. But it does not recognize the "/Backup/Backup-Fedora-Files", but I can assure you that the drive "Backup" and the folder in that drive "Backup-Fedora-Files" are there. So, what now?
I have looked for "man commandyoutwanttoknow" and the terminal gave me: "man commandyoutwanttoknow
No manual entry for commandyoutwanttoknow", then I thought that there might be a typo and tried: man commandyouwanttoknow and I got: No manual entry for commandyouwanttoknow.
List the destination directory using "ls -ld <directory name>". You can press the TAB key after the first few letters and bash will complete what you typed. I'm wondering if maybe the destination path should be /mnt/Backup/Backup-Fedora-Files/ or /media/Backup/Backup-Fedora-Files/.
If you enter "mount" with no arguments, it will list the mounted filesystems.
I'd recommend "cp -a <source_dir> <destination_dir>". The "-a" option stands for archive and sets 3 options including -R.
If permissions are important for the files you are backing up, you want to make sure that the filesystem you are saving the files to support Linux permissions. One example is ext3.
Firstly, last night while in bed and I could not sleep, I realised what was ment with "man commandyoutwanttoknow" and when today I tried "man cp" I got a screen that was more sensible, but not yet helpful to me, I think that the choice of "Backup" as a drive name might not be useful. However, I cannot change it now I believe. You must have had a chuckle about my effort in relation to "man commandyoutwanttoknow"!
Secondly, I tried:
cp -R /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files/ (using the trailing /)
cp: cannot create directory `/Backup/Backup-Fedora-Files/': No such file or directory
Using the "mount" command, I got:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdc1 on /media/BACKUP type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)
/dev/sda1 on /media/System type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
It is all Greek to me, but reading the bit "/media/BACKUP" and the post "/media/Backup/Backup-Fedora-Files/" I tried:
cp -R /home/Jenni_and_Adri/.evolution /media/Backup/Backup-Fedora-Files/
cp: cannot create directory `/media/Backup/Backup-Fedora-Files/': No such file or directory
So, then I tried:
cp -R /home/Jenni_and_Adri/.evolution /mnt/Backup/Backup-Fedora-Files/
cp: cannot create directory `/mnt/Backup/Backup-Fedora-Files/': No such file or directory
Then I tried:
cp -a /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files/
cp: cannot create directory `/Backup/Backup-Fedora-Files/': No such file or directory
I am not clear about permissions, or the example "ext3". But I did notice that it was mentioned in the return after the "mount" command.
Finally, I tried the command:
ls -ldZ /Backup/Backup-Fedora-Files (without, or with an "/" at the end)
and got in both cases (again without or with an "/" at the end)
ls: cannot access /Backup/Backup-Fedora-Files: No such file or directory
Coming back to the permissions issue I just read in "Moving to Ubuntu" some references to permissions. I noticed that the ".xml" files, which give me the problems, are file which have the following permissions:
Owner: Read and Write
Group: None (Choices are None, Read-only and Read and Write)
Execute: Not ticked: Allow executing files as program.
Should the Group Access be changed to "Read and Write"?
In GNU/Linux case sensitivity means /media/backup is not similar to /mEdia/b4CkUp or /media/BACKUP. If the directory "/media/BACKUP/Backup-Fedora-Files" does not exist make it first: 'mkdir /media/BACKUP/Backup-Fedora-Files'. Then recursively copy the contents of /home/Jenni_and_Adri/.evolution to your removable drive with 'cp -r /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files'.
You can encounter a "Invalid argument" error if a filename can be interpreted as an option to the command. Try 'cp -v -f -r -- /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files'. The "-v" means verbose so you see on screen what gets copied, the "-f" uses force to copy files already in place and the "--" should stop from interpreting filenames as command switches. If that doesn't work you could try this 'cd /home/Jenni_and_Adri/.evolution; mkdir /media/BACKUP/Backup-Fedora-Files/.evolution; tar cf - * | ( cd /media/BACKUP/Backup-Fedora-Files/.evolution; tar xfp -)'.
Shows you how don't understand the basics. I had built the folder Backup-Fedora-Files in my external drive BACKUP using File>create folder. In my Fedora drive "Filesystem" I found, what I thought are a number of folders like "bin", "boot", "media" and others and I have no idea what they mean.
I never understood what an external drive "BACKUP" was doing in a folder under an internal drive called "Filesystem" as they are shown on the same level as "BACKUP", so when you said to do "mkdir /media/BACKUP/Backup-Fedora-Files" I thought that I was making a copy of a new directory SEPERATE from my external drive BACKUP into a folder 'media" (if that makes sense.
It was only after I saw the difference when a USB drive was added, that I saw that the drive "disk" was added to "Filesystem".
I now also understand the importance of the differences of the use of upper or lower case
So, I hope I correctly understand your suggestion to do:
cp -v -f -r -- /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files
I got more results than I had before, but it did not get all of it (as you can see above), for instance under home/Jenni_and_Adri/.evolution/addressbook/views I get 6 items, while under media/BACKUP/Backup-Fedora-Files/addressbook/views I get only 2 items.
In this example, two I got were:
"By_Company.galview" and "galview.xml"
The ones missing in this example were:
I believe that the missing files are important to have when a clean install would remove all of the .evolution folder and the backup of the .evolution folder is needed to reinstate these folders and files.
I tried to reproduce what you posted and I just can't. I wonder if there's something else going on. Could you do me a favour and 0) check if you did not perform any of the steps at http://www.go-evolution.org/FAQ#How_...e_directory.3F and 1) try to create a tarball instead: 'tar -vczf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz /home/Jenni_and_Adri/.evolution'?
I have not tried to perform the steps, because I did not know of its existence. It appears to remove files, if I understand it correctly:
"rm -rf .evolution .gnome2_private/Evolution .camel_certs"
If I had known about this site I would not have tried it because the "rm" command seems to instruct to remove something (Evolution?), and I do not like to remove anything until I understand what I am doing.
So I tried:
tar -vczf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz /home/Jenni_and_Adri/.evolution
It transferred 175.9Mb of files as a zipped file and put it into my external drive, exactly what it seems to need to do. How does one "unzip"?
Since the tarring picked up the path (/home/Jenni_and_Adri/.evolution) one does unpack a tarball with 'tar -vxzf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz -C /' after which the files will end up in /home/Jenni_and_Adri/.evolution. Of course you're free to use something like "-C /tmp" and move them into place manually.
I want to "unzip" the tarball into the same directory as the evolution_backup.tar.gz, which is on the external drive as the tarball is easily recognizable from other files and folders that would be "unzipped" In order to do that, I typed the command:
tar -vxzf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz -C /media/BACKUP/Backup-Fedora-Files/
I think something went wrong: I got a result, but there appear to be a number of error messages as shown in the last lines of addressbook:
Looking at the newly formed addressbook there were only two items formed instead of 6, just like in my post of 05-04-09 04.19 pm.
So it seems that the tarball did not pick up these files, just as the directly copy command we tried before and the original way of ctrl copy of the .evolution files into the ctrl paste into the directory on the external drive. Why do some .xml files copy/paste and others do not?