Quick notes, backing up guide linux using CP and DIFF

To Copy
cp -prv “/home/user/Downloads/” “/usbDrive/Downloads/”

To Check Copy Worked
diff -qr “/home/user/Downloads/” “/usbDrive/Downloads/”

References:
http://hints.macworld.com/article.php?story=20100212171620210
http://linuxcommando.blogspot.com.au/2008/05/compare-directories-using-diff-in-linux.html
man cp
man diff

WindyCityTech Blogger
WindyWindyCityTech WordPress

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s