Rsync full backup issue...

Discussion in 'Mac Programming' started by sitryd, Sep 24, 2007.

  1. sitryd macrumors member

    Joined:
    Sep 19, 2006
    #1
    Hey,

    I wrote a script to have rsync backup my full drive, but it seems to be missing a .DS_Store file or somesuch because rather than the nice and neat list:

    Applications
    Library
    System
    Users

    All the unix/kernel files are visible (e.g. /dev, /etc, and so on)

    my script is:

    sudo rsync -ax --eahfs --ignore-errors --delete-after --showtogo --exclude-from=.RsyncExclude.txt / '/Volumes/Backup/'
    sudo bless -folder /Volumes/Kalkin/System/Library/CoreServices > '/Users/Sitryd/Library/AppleScript Logs/RsyncLog.txt' 2>&1"


    is there some flag I can use to purely clone the / directory?

    Thanks!

    Edit: I'm also getting a lot of

    chown "/Volumes/Backup/Applications/VLC/VLC.app/Contents/Resources/gl.lproj/vlc.scriptTerminology" failed: No such file or directory

    type errors.... any ideas? :)
     
  2. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #2
    In the past I've used "dd" to clone volumes. dd is a bit more brute force than rsync. Boot off a small external boot disk then dd your root disk to a backp device.

    I think rsync has so trouble with files that are in use.
    and I know it will not copy boot blocks and partition tables. dd is just a dump block by block raw copy
     

Share This Page