Is rsync faster then finder

Discussion in 'macOS' started by maflynn, Sep 18, 2009.

  1. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #1
    The title states it all, if I issue a rsync -av ~/ /Backup

    Would that be faster then just dragging my home folder to the my backup external disk?
     
  2. shakenmartini macrumors 6502

    Joined:
    Apr 29, 2008
    #2
    Rsync should be faster and is easier to script.

    Rsync also has a lot more advantages. For one, the Finder does not "merge" and update files, it does a whole sale replace.

    For example, I use this perl script to backup my Documents folder in addition to my regular time machine backups.

    Code:
    #!/usr/bin/perl
    # Execute rsync
    `rsync -ar /Users/$username/Documents/ /Volumes/$external/backup/`;
    
    just replace the $ variables with values appropriate to your machine.

    make sure you also run

    Code:
    chmod +x perlscript.pl
    
    to make the script executable.

    If you are running this automatically from a script you might want to omit the "v" flag as this causes a lot of output. There is also a huge performance hit for printing what it is doing, which when you do you initial backup will make a difference.
     

Share This Page