LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2016, 12:53 AM   #16
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373

Quote:
Originally Posted by Gregg Bell View Post
Hi 273. I'm just dabbling with them. If they were more important I'd really want to know what's happening with them but I don't even have to use them.
To be honest I'm intrigued myself now whether you are creating hard links or not. It's possible that Dropbox don't allow hard links to avoid recursion but it would be nice to know for sure. I have seen people mention that hard links don't synchronise unless a change is made to them (for example "touch linkname" because while the directory being pointed to shows a change the hard link does not unless the change was made in the hard link directory (difficult to explain, sorry).
 
Old 09-08-2016, 05:06 AM   #17
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Hard links don't allow for recursion - but symlinks do (symlinks are handled differently preventing system problems).

The problem is not knowing how dropbox actually works (it is a proprietary daemon - thus no source code).

If it is using inotify then it is POSSIBLE that hard links are not supported (adding a hard link to a directory within the dropbox tree). If the addition of a name via a hard link is not counted as a "file creation" dropbox may not see it.

Creating the file within the dropbox is recognized - so perhaps adding the hard link separately would be acceptable.
 
1 members found this post helpful.
Old 09-08-2016, 12:28 PM   #18
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by ondoho View Post
well have you tried to use symlinks instead???
supposing the dropbox problem still persists.
Okay. I tried a sym link. I'll see later tonight if it syncs to the other computer (in Dropbox) and report back.
 
Old 09-08-2016, 12:28 PM   #19
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by jpollard View Post
Hard links don't allow for recursion - but symlinks do (symlinks are handled differently preventing system problems).

The problem is not knowing how dropbox actually works (it is a proprietary daemon - thus no source code).

If it is using inotify then it is POSSIBLE that hard links are not supported (adding a hard link to a directory within the dropbox tree). If the addition of a name via a hard link is not counted as a "file creation" dropbox may not see it.

Creating the file within the dropbox is recognized - so perhaps adding the hard link separately would be acceptable.
Thanks, that makes sense of the ideas I had about what could be happening -- sorry to be derailling the thread a little to talk technicalities.
 
Old 09-08-2016, 12:29 PM   #20
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by 273 View Post
To be honest I'm intrigued myself now whether you are creating hard links or not. It's possible that Dropbox don't allow hard links to avoid recursion but it would be nice to know for sure. I have seen people mention that hard links don't synchronise unless a change is made to them (for example "touch linkname" because while the directory being pointed to shows a change the hard link does not unless the change was made in the hard link directory (difficult to explain, sorry).
No, you did a pretty good job explaining! I put a symlink into Dropbox. I'll report back later if it syncs in the other computer.
 
Old 09-08-2016, 12:31 PM   #21
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jpollard View Post
Hard links don't allow for recursion - but symlinks do (symlinks are handled differently preventing system problems).

The problem is not knowing how dropbox actually works (it is a proprietary daemon - thus no source code).

If it is using inotify then it is POSSIBLE that hard links are not supported (adding a hard link to a directory within the dropbox tree). If the addition of a name via a hard link is not counted as a "file creation" dropbox may not see it.

Creating the file within the dropbox is recognized - so perhaps adding the hard link separately would be acceptable.
This is getting over my head but I did add a sym link to Dropbox (as well as another hard link for the heck of it) and will report back when I check the other computer.
 
Old 09-08-2016, 12:33 PM   #22
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
So, one of the main differences between sym links and hard links is if I'm working on a file and I accidentally delete it, the sym link is gone too, whereas with a hard link the file is still in tact in the location I put it. Right? (I see hard links as a safeguard.)
 
Old 09-08-2016, 12:59 PM   #23
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Gregg Bell View Post
So, one of the main differences between sym links and hard links is if I'm working on a file and I accidentally delete it, the sym link is gone too, whereas with a hard link the file is still in tact in the location I put it. Right? (I see hard links as a safeguard.)
The file representing the symlink is still there - that is a separate file and doesn't get deleted, but if you delete the file with data then it is gone - leaving only the symlink.

With the hard link the file data is still intact, but can only be accessed via the other pathname.
 
2 members found this post helpful.
Old 09-08-2016, 05:08 PM   #24
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jpollard View Post
The file representing the symlink is still there - that is a separate file and doesn't get deleted, but if you delete the file with data then it is gone - leaving only the symlink.

With the hard link the file data is still intact, but can only be accessed via the other pathname.
Thanks jpollard. Not sure I entirely understand. I actually experimented. I had a file in my Documents folder and I put a sym link of that file in my Dropbox folder. Then I was working on the file in my Documents folder and deleted it. When I went to my Dropbox folder the file (the sym link) was still there, however it had a little "X" in it and there was no data.

So really what I was saying is the case, then? Delete the source file and if you only have a sym link you're out of luck, right? Yes, the sym link still exists but it contain no data, right?

Thanks
 
Old 09-08-2016, 05:42 PM   #25
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Gregg Bell View Post
Thanks jpollard. Not sure I entirely understand. I actually experimented. I had a file in my Documents folder and I put a sym link of that file in my Dropbox folder. Then I was working on the file in my Documents folder and deleted it. When I went to my Dropbox folder the file (the sym link) was still there, however it had a little "X" in it and there was no data.

So really what I was saying is the case, then? Delete the source file and if you only have a sym link you're out of luck, right? Yes, the sym link still exists but it contain no data, right?

Thanks
Correct that the original data is gone - The symlink itself still exists and can be used to identify WHERE the file USED to be.
 
1 members found this post helpful.
Old 09-08-2016, 08:53 PM   #26
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jpollard View Post
Correct that the original data is gone - The symlink itself still exists and can be used to identify WHERE the file USED to be.
Excellent, jpollard. Thank you.
 
Old 09-08-2016, 08:54 PM   #27
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Okay. I just tested the softlink and the hardlink files in Dropbox on my home computer and they both synced. I don't know why the hardlink didn't sync before.
 
  


Reply



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
[SOLVED] I lost Dropbox sync Gregg Bell Linux - Newbie 39 04-15-2016 08:26 PM
[SOLVED] Dropbox Public Link from Dolphin? BoydRice Slackware 3 04-24-2012 07:56 PM
Remote file Sync like dropbox wykthorr Linux - Software 3 12-31-2011 06:51 AM
File Sync/Storage Alternatives To Dropbox jmoschetti45 Linux - Software 3 02-26-2011 07:51 AM
Dropbox not sync-ing in KDE spoovy Linux - Desktop 2 03-16-2010 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 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