Find the answer to your Linux question:
Results 1 to 3 of 3
Hi everyone, new bee here, I searched the achieve but couldnt find. I would like to back up of a folder to my usb drive and folder includes symbolic links ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    9

    Question symbolic link

    Hi everyone,
    new bee here, I searched the achieve but couldnt find.
    I would like to back up of a folder to my usb drive and folder includes symbolic links inside.
    I am getting this error
    "cp: cannot create symbolic link /home/path/ Operation not permitted"
    what would be your suggestions guys?
    Thank you

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Presumably your USB drive is formatted to FAT32, which doesn't allow things like symlinks and file permissions.

    You can format it to ext2, or you can tar everything up to preserve permissions/symlinks.

    Howto: Backup and restore your system! - Ubuntu Forums

  3. #3
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Of, if you are not able to format using ext3/4, you can copy without symbolic lynks:

    $ cp -r -P /path/to/your/folder /media/destination/usb/drive

    The -P option indicates do not follow symlynks
    EOF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...