LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2006, 06:58 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
can you use diff across the network?


hi. i am backing up a few files on my laptop to my desktop in order to try a new distro on the laptop. I want to double check and make sure all files got there correctly (I used scp) Is diff capable of comparing two files on two different machines? i thought maybe ndiff would logically be the network version but it compares nmap outputs. Also i don't know if diff is the program i would use because it is two directories i want to compare. If diff can't compare files over a network i think that would be a useful feature to add, but im sure someone has thought of that and if it is not a feature of diff probably a feature of another program. If it is another program with that feature does anyone know what it is called? thanks for any replies in advance.
 
Old 06-03-2006, 07:27 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
diff won't work over a network per se, but if you mount a share from the network machine using NFS, Samba or sshfs then you can easily diff the directories.
 
Old 06-04-2006, 08:21 AM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
thanks. What i ended up doing was changing to the directory that i put all the files in and did ls > backupcontents on both machines, copied the file from the remote machine to the local machine using scp and then used diff on both of the files. Probably not the best way but it worked. It is only some mp3's i was backing up and nothing too important. So that is another benefit of using fuse+sshfs is the network transparency. i started looking into that but hadn't gotten around to recompiling a kernel with fuse in it. that is on my todo list because it will be nice if i can mount my harddrive with all my mp3's on it from my laptop so i could rip all my cds to one hardrive and have both the laptop and desktop share them. thanks for your reply.
 
Old 06-04-2006, 09:45 AM   #4
DeanLinkous
Member
 
Registered: Jun 2006
Posts: 111

Rep: Reputation: 15
huh? If you mount a samba share of any type of share for that matter it is basically transparent and you can use it as if it was on the local machine. All my oggs are on one machine and I play them wherever I am, in fact for that I dont even setup a mount I just browse the network using gnomes places->network and then just locate my oggs, drag them over into my musicplayer and I am good to go...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff b/w 'network' and 'ifcfg-eth0' files linuxistan Linux - Networking 2 10-18-2004 05:30 AM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 06:06 PM
So, What's the diff.? The Manic Mouse Linux - Distributions 3 03-19-2004 07:38 AM
What a Diff! perry General 0 12-05-2003 07:10 PM
Network diff > 8.0 & 8.1 cereal2k Slackware 3 06-28-2002 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration