Showing posts with label commands. Show all posts
Showing posts with label commands. Show all posts

Monday, April 7, 2008

Let's re-visit rysnc, shall we?

I covered the "rsync" script in an earlier post (located here). But recently my wife and I have evolved into a Mac family and I once again searched for a good syncing utility. Much to my great relief, Mac OS X, a Unix based system INCLUDES the amazing rsync utility. The command is the exact same and it works beautifully. M$ Briefcase take this:

rsync -avuz /Your/Inferior/Win/OS/ /Oober/Awesome/Times/Infinity/

Where, of course, "/Oober/Awesome/Times/Infinity/" then receives any new files from the local directory "/Your/Inferior/Win/OS/" without erasing any extra files not in the "from" directory.

Once again the traits of a superior operating system.

Friday, January 4, 2008

rsync - Once again why Linux is better.

Linux has this little easy command called rsync. Basically what it did for me today was went through all the music on my computer, compared it with the saved music on my external hard drive, and then copied anything over to the external that wasn't already there.

See, I use my laptop to listen to music and when I get a new cd I put it on my laptop. But then I need to make sure my external is keeping a good/up-to-date backup of all my music in case something happens to my laptop.

Thanks to linuxquestions.com I found a quick and easy way to do that with rsync.

The command I used was:

rsync -avuz /home/awesome/Music/ /media/My\ Book/My\ Music/
(laptop music dir) (ext. music dir)


rsync is the command.
"a" option archives the files to the new directory
"v" verbose?
"u" update - this causes it to skip files that are newer on the destination - that way you don't copy old info over new info (in my case this is a "just in case")
"z" compresses files during data transfer - to speed transfer


Wow, that's excellent.