LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-19-2013, 10:30 PM   #1
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Rep: Reputation: Disabled
Backing up home dir to Dropbox using a symbolic link


Hello.

I am trying to backup my home directory to Dropbox using a symlink, e.g.

Code:
$ cd /home/dereism/Dropbox
$ ln -s /home/dereism fedoraBackup
Though my 'Dropbox' directory is within my home directory (obviously) and appears to be causing problems with this method of getting my nonsense reliably into Dropbox via this idea.

Does anyone have a workaround, suggestion, or slap-in-the-face for me regarding this situation?

Thanks so much, all is received with gratitude.

Last edited by dereism; 02-19-2013 at 10:31 PM. Reason: Typo
 
Old 02-19-2013, 11:12 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Please ignore this.
@Mods, if possible, please remove this post, it has done mistakenly. I posted my answer in below post.

Last edited by shivaa; 02-19-2013 at 11:32 PM. Reason: Done mistakenly. Please ignore
 
Old 02-19-2013, 11:17 PM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Backup and creation of a symlink both are different tasks. You can create a symlink named fedoraBackup inside /home/dereism/Dropbox of your home dir. i.e. /home/dereism for ease of access to home directory, but it doesn't means that home dir. has been backed up.

If you want to backup your home dir. then simply create it's tar file, zip it, and copy it to some external drive or on some other file system.
Code:
~$ tar -cvf home.tar /home/dereism/*
~$ gzip home.tar
~$ dd if=/home/dereism/home.tar.gz of=/path/to/external_drive
 
Old 02-19-2013, 11:21 PM   #4
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
Excuse me for my ignorance. (I understand I was using the term 'backup' flippantly, I was merely trying to simplify an issue.)

To put it even more simply, I would like the contents of my home directory mirrored in Dropbox. I'm asking for help accomplishing this task. Unfortunately, the Dropbox dir exists within the dir to be linked and this appears to be causing problems with my linux install. I've done this successfully under OS X, and it seems to work in theory based on my experience with a foreign OS.

I'm not trying to be weird.

Edit: I seem to be asking for the impossible (even though it isn't, under other systems). I'll just stumble back to SSH like I am supposed to.

Edit second: This appears to be a known issue. Folks are simply using git, .gitignore, and github with Dropbox to circumvent this issue, apparently.

Last edited by dereism; 02-19-2013 at 11:36 PM. Reason: I left out something
 
Old 02-19-2013, 11:37 PM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Alright. But what's problem when you're creating a symlink of home directory i.e. /home/dereism/ in /home/dereism/Dropbox?

Even this once looks ok:
Code:
$ cd /home/dereism/Dropbox
$ ln -s /home/dereism fedoraBackup
Once check manual here.
 
Old 02-19-2013, 11:50 PM   #6
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
The Dropbox directory (which is something of a symlink in of itself) being included within my example cli symlink creation causes Dropbox under Fedora to completely fall apart. I can't even provide a bug report, because the symptoms keep changing. Usually, it just sits at 'starting' until I delete the linked directory in Dropbox and reboot:

Code:
$ dropbox status
$ starting...
Sometimes Dropbox is sitting at 'indexing' in what appears to be an infinite loop until, again, the linked directory is deleted from Dropbox followed by a reboot.

The CPU is pegged at 99% during these events.

This behavior, while understandable, isn't replicated under other operating systems to the best of my knowledge and experience.

Edit: This appears to be a bug in Dropbox's support for Fedora, perhaps linux in general, though based on the response here I am guessing the former (me suspects Debian preference 'round these parts . The Dropbox interface seems smart enough to ignore itself under other systems, in fact my reading suggests it is doing just that: Ignoring itself. The .gitignore file containing 'Dropbox/' within a private Github repo of my home directory which is then pushed to Dropbox seems like the only solution at this point. Though this seems like quite a problem, and I am not sure who to turn to for complaint. I'll get annoyed with issuing git commands every morning, though I suppose it will just fall in line with 'yum update'.

Thanks for the attention.

Last edited by dereism; 02-20-2013 at 12:44 AM. Reason: Grammar
 
  


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] Can I make a symbolic link that is dynamic link->$HOME/file? croog Linux - General 4 10-14-2012 07:55 PM
Apache2 root server showing directory contents of a symbolic link in the /var/www dir rtoney5 Linux - Server 7 09-03-2010 07:50 PM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
Is it possible to make a dir a symbolic link? dr_zayus69 Linux - General 4 03-09-2005 08:48 AM
mysterious symbolic link in root dir dubman Linux - Security 1 04-12-2004 07:11 PM

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

All times are GMT -5. The time now is 04:03 PM.

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