LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11: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 11:31 PM. Reason: Typo
 
Old 02-20-2013, 12:12 AM   #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-20-2013 at 12:32 AM. Reason: Done mistakenly. Please ignore
 
Old 02-20-2013, 12:17 AM   #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-20-2013, 12:21 AM   #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-20-2013 at 12:36 AM. Reason: I left out something
 
Old 02-20-2013, 12:37 AM   #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-20-2013, 12:50 AM   #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 01:44 AM. Reason: Grammar
 
  


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


All times are GMT -5. The time now is 02:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration