Sunday, 17 February 2013

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

No comments:

Post a Comment