Syncronise large collections over local network {RSYNC}

I have shelves & shelves of cds that i have ripped to FLAC & it sits on my laptop but a recent drop of my laptop rendered its hard disk no longer useful for storing data.

I had a backup of my library on my NAS but it was maintained by hand using copy & paste whenever i remembered. SO i have now found that i have to re-rip a bunch of my CDs.

Now using RSYNC i have this problem no longer there is a quick & easy way to sync.

Install RSYNC (as root)

apt-get install rsync

First mount the two libraries (as root)

mount /dev/sdb4 /mnt/stuff/
mount // /mnt/samba/

Make sure all the permissions are ok (as root)

chmod -R 777 /mnt/stuff

chmod -R 777 /mnt/samba

List the files that would change if a sync went ahead

rsync –size-only –verbose –recursive –dry-run /mnt/stuff/Music/ /mnt/samba/Music/

Once your happy with the files that will move take off the –dry-run

rsync –size-only –verbose –recursive /mnt/stuff/Music/ /mnt/samba/Music/

Thats all there is to it!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.