Autosync to box.net (or other webdav)

This forum is for all other ARMv5 devices

Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Aug 12, 2012 5:54 am

Looking to use my back up to back up :) . I want to have my Pogoplug run nightly sync's to box.net. My current plan is to mount my Box.net account as a webdav folder and use rsync (or a derivative thereof). Set ups a chron to run the rsync each day (hour,week, whatever). Anybody have experience attempting this? Are there better ways?

I will update if I get this working.
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Aug 26, 2012 6:52 am

used instructions found here: http://gstoyanov.com/sync-box-account-linux/

However some of this had to be modified. Such as;
- creating the .davfs2/ dir
- creating ~/.davfs2/davfs2.conf
- creating ~/.davfs2/secrets

also mounting was not working ( kept getting an error about not being present in fstab) never completely fixed that but use the command found here: http://www.pclinuxos.com/forum/index.php?topic=103176.0
- mount -t davfs https://www.box.net/dav box.net/ -o username=myuser@gmail.com,password=mypass123
worked

- now to setup rsync
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Aug 26, 2012 6:53 am

oh, I forgot I had to update my openssl as I was getting a " SSL handshake failed: SSL disabled due to library version mismatch" error.
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Aug 26, 2012 8:09 am

be careful with that openssl update. i seem to be SOL right for now while I try and get an ssh connection to my plug :(
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sat Sep 15, 2012 10:56 pm

recovered the plug with a new rootfs. then updated to the latest kernal/rootfs.

fun issue abound. Currently getting this error -


SSL handshake failed: SSL disabled due to lack of entropy

any ideas?
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby Philoo » Sun Sep 16, 2012 12:33 am

if you have a sata drive attached to the plug: $this->bbcode_second_pass_code('', 'ls -lR ') provides a good amount of decent quality entropy. otherwise you may use aria2 or other client to download some big files (e.g. archlinux ISO) through bittorrent or other peer to peer system. Straight http/ftp download is usually too deterministic to be of much use.

some pple have devised ways to gather entropy or generate better random numbers using the "noise" of a blind webcam or thermal noise fed to an audio input. there is very old (gosh 10 years old) egd project at sourceforge. I'm guessing it is obsolete but since this is a perl implementation it might come in handy in your case.
Your call to decide whether it is better to have a crappy random number generator, thus a less secure ssl encryption or keep things secure and not being able to communicate.
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Sep 16, 2012 2:29 am

Thanks I'll give it a try. My first use of ls -lR didn't seem to make a difference. do I need to do some ssl commands after that? I'll keep trying things.
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Sep 16, 2012 3:18 am

Yeah... I think I missed something I just realized what your command does... I am guessing there are a few steps that I am oblivious to. Any chance you can fill me in on how to USE this "entropy". thanks
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Sun Sep 16, 2012 3:28 am

the full error... for science:

$this->bbcode_second_pass_code('', '
/sbin/mount.davfs: Mounting failed.
SSL handshake failed: SSL disabled due to lack of entropy
')
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm

Re: Autosync to box.net (or other webdav)

Postby mopeyjoe » Tue Sep 18, 2012 4:03 am

ok... sooo got somewhere at least

found a somewhat solution to the entropy issue on this site

http://markus.revti.com/2007/12/creating-devrandom/

however
/dev/random
/urandom
/ptmx
/null

all exist just remade them.

then i proceeded to receive a $this->bbcode_second_pass_quote('', 'T')ransport endpoint is not connected

not really sure what fixed that other then multiple mount/umount attempts

if I reboot I have to redo all the /dev/* making


once again. your thoughts are appreciated
mopeyjoe
 
Posts: 21
Joined: Sat Mar 10, 2012 5:05 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 3 guests