Backup iPhoto library through terminal

Discussion in 'macOS' started by markfc, Dec 11, 2012.

  1. markfc macrumors 6502a

    markfc

    Joined:
    Sep 18, 2006
    Location:
    Prestatyn, Wales, UK
    #1
    I seem to have corrupt Macintosh HD that disk repair can't fix so im going to reinstall but i need to backup my iPhoto and iTunes library first.
    Trouble is Finder is just beach balling so I can't use finder to do it.

    Can I do this through terminal or another way?

    Thanks
     
  2. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #2
    This might help, as you only need to use the CP command to do so.
     
  3. switon macrumors 6502a

    Joined:
    Sep 10, 2012
    #3
    RE: ditto, scp,...

    Hi,

    Simsaladimbamba's suggestion of using the "cp -pr" command is a fine one, but I'll offer another recommendation or two.

    Personally, I'd probably try the "ditto" command. The reason for this is because your drive is corrupted and disk repair cannot fix it. The "cp" command may get "stuck" if it runs into a corrupted file. The "ditto" command, on the other hand, almost never fails --- if it encounters an error it will report the error and then continue with its copy.

    If you can't get access to a Terminal window, then you might still be able to SSH into the machine and do your copy. For instance, the "scp" (secure cp) command can be used to copy from one machine to another. Similarly, the "sftp" command works just like "ftp" and might also be used to copy files from one machine to another.

    ...just a couple of other possibilities...

    Regards,
    Switon
     
  4. markfc thread starter macrumors 6502a

    markfc

    Joined:
    Sep 18, 2006
    Location:
    Prestatyn, Wales, UK

Share This Page