WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Cloud storage possibilities in tc  (Read 6569 times)

Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Cloud storage possibilities in tc
« on: April 05, 2013, 09:13:00 AM »
Noticed dropbox has been discussed here a bit.

In NFS the data is only stored in the server's hard drive. Not so with dropbox, where a duplicate of the data is stored in your local drive. If there is no local drive, dropbox is not an option, right? At least not with files larger than available ram.

Is there any other cloud storage solution that does not keep a duplicate of the data locally?

Any workarounds to make dropbox work this way? Any way to make it work with files larger than available ram when there is no hard drive?
« Last Edit: April 05, 2013, 09:35:42 AM by Ulysses_ »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Cloud storage possibilities in tc
« Reply #1 on: April 05, 2013, 09:22:21 AM »
I haven't heard of any "cloud" provider offering a network filesystem, which would enable files larger-than-RAM. NFS is not really secure enough to offer over the 'net.

OTOH, the fuse module that uses your gmail space might work like this. It's not quite in the same class as dropbox though.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Cloud storage possibilities in tc
« Reply #2 on: April 05, 2013, 09:24:29 AM »
Jungledisk uses a fuse filesystem.  I don't know anyone using it with TC though.

Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Re: Cloud storage possibilities in tc
« Reply #3 on: April 05, 2013, 09:34:46 AM »
Quote
It's not quite in the same class as dropbox though.

Can you explain a little what is going on with fuse using gmail space (or jungledisk's fuse?) that makes it substantially different from NFS as far as the user is concerned?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Cloud storage possibilities in tc
« Reply #4 on: April 05, 2013, 09:54:46 AM »
Any user account with a shell provider could be locally mounted with sshfs-fuse (as long as there is a remote sftp server running).
« Last Edit: April 05, 2013, 10:36:03 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Cloud storage possibilities in tc
« Reply #5 on: April 05, 2013, 10:23:31 AM »
The difference is how Jungledisk stores and archives the files.  The Jungledisk website would be a better place to read about its advantagaes and limitations.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Cloud storage possibilities in tc
« Reply #6 on: April 05, 2013, 06:41:04 PM »
This appears like it might be worth looking into:

http://code.google.com/p/boxfs/
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Cloud storage possibilities in tc
« Reply #7 on: April 05, 2013, 07:50:15 PM »
Based on subject of this thread I was led to do some research about available remote storage options.

Now the one thing I did most certainly not expect to happen was this:

:o

"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Cloud storage possibilities in tc
« Reply #8 on: April 05, 2013, 09:30:48 PM »
I tried boxfs.  It has not been updated in over 2 years, and reports:
Error while logging in to Box.net.

This looks like a dead end.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Cloud storage possibilities in tc
« Reply #9 on: April 06, 2013, 11:18:48 AM »
In NFS the data is only stored in the server's hard drive. Not so with dropbox, where a duplicate of the data is stored in your local drive. If there is no local drive, dropbox is not an option, right? At least not with files larger than available ram.

Is there any other cloud storage solution that does not keep a duplicate of the data locally?

Here is the result of putting sshfs to the test:

Code: [Select]
tc@box:~$ ssh user@shell.org
Last login: Fri Apr  5 10:07:58 2013 from 72.208.234.114
[user@shell ~]$ du -sh
296M    .
[user@shell ~]$ exit
logout
Connection to shell.org closed.
tc@box:~$ mkdir -p mnt/sshfsmount
tc@box:~$ sshfs user@shell.org: mnt/sshfsmount/ -C
tc@box:~$ df mnt/sshfsmount/
Filesystem                Size      Used Available Use% Mounted on
user@shell.org:      7.0T    875.1G      5.6T  13% /home/tc/sshfsmount
tc@box:~$ du -sh mnt/sshfsmount/
298.4M  mnt/sshfsmount/
tc@box:~$ df /
Filesystem                Size      Used Available Use% Mounted on
rootfs                   452.0M     27.0M    425.1M   6% /
tc@box:~$ cd mnt/sshfsmount/
tc@box:~/mnt/sshfsmount$ mkdir dload
tc@box:~/mnt/sshfsmount$ cd dload/
tc@box:~/mnt/sshfsmount/dload$ wget -c http://archive.org/download/utopia/Utopia_512kb.mp4
Connecting to archive.org (207.241.224.2:80)
Connecting to ia600209.us.archive.org (207.241.227.239:80)
Utopia_512kb.mp4     100% |*******************************|   563M 00:00:00 ETA
tc@box:~/mnt/sshfsmount/dload$ cd
tc@box:~$ ssh user@shell.org
Last login: Fri Apr  6 08:12:23 2013 from 72.208.234.114
[user@shell ~]$ du -sh
860M
[user@shell ~]$ exit
logout
Connection to shell.org closed.
tc@box:~$ df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  452.0M     27.2M    424.9M   6% /
tc@box:~$ mplayer sshfsmount/dload/Utopia_512kb.mp4
MPlayer SVN-r33811-snapshot-4.4.3 (C) 2000-2011 MPlayer Team

Playing sshfsmount/dload/Utopia_512kb.mp4.
libavformat file format detected.
[....]

tc@box:~$ df /                   
Filesystem                Size      Used Available Use% Mounted on
rootfs                   452.0M     27.2M    424.9M   6% /
tc@box:~$ mount|grep sshfsmount 
user@shell.org: on /home/tc/mnt/sshfsmount type fuse.sshfs (rw,nosuid,nodev,user_id=1001,group_id=50,max_read=65536)

QED :)
« Last Edit: April 06, 2013, 03:44:41 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Re: Cloud storage possibilities in tc
« Reply #10 on: April 06, 2013, 03:43:22 PM »
That's cool. So you have paid for a shell account at shell.org? Or is it a free service, and if yes what is the password?

Also how does shell.org compare with common cloud storage like amazon's, might amazon's be faster?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Cloud storage possibilities in tc
« Reply #11 on: April 06, 2013, 03:59:06 PM »
Err... "shell.org" is a fictional replacement to obfuscate my personal credentials, perhaps I should have made that "shell.example.com" to be clear beyond a doubt  ;)
If you search the web you could find dozens of shell providers at a vast range of various terms and conditions, from in-mommas-basement until enterprise.
No idea about amazon, but sure net speed can differ between shell providers and perhaps even between types of accounts of same provider.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Re: Cloud storage possibilities in tc
« Reply #12 on: April 06, 2013, 04:30:32 PM »
What happens if you put a truecrypt container into the sshfs folder and you then mount the truecrypt container, and you then echo hello >> truecrypt_folder/test.txt? Does the entire container file get transfered?

I know truecrypt only changes a small part of the container file, but if that file is under sshfs, does the entire file get transfered?
« Last Edit: April 06, 2013, 05:35:57 PM by Ulysses_ »

Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Re: Cloud storage possibilities in tc
« Reply #13 on: November 01, 2014, 01:42:25 PM »
Can software raid 1 be done between two sshfs volumes in different servers?

One server would be my pc, the other server would be "in the cloud" - with sshfs set up of course in both servers.


Offline Ulysses_

  • Full Member
  • ***
  • Posts: 232
Re: Cloud storage possibilities in tc
« Reply #14 on: January 03, 2015, 11:32:53 AM »
Can software raid 1 be done between two sshfs volumes in different servers?

For redundancy one could go for something like GFS2, probably interfaced to DRDB, and using free VPS's from different providers. Add client-side encryption like truecrypt or its more up-to-date cousins.

That would be a cool live CD. Anyone see problems with this?
« Last Edit: January 03, 2015, 11:49:27 AM by Ulysses_ »