News for hackers. Stuff that matters.
Re:I Nearly Lost All of My Data by derekp7 on Saturday January 19, 2019 @05:37PM (#18949667)
The best solution I found as an alternative to an off-site copy is to set up a USB drive and something like a Raspberry Pi in my car. When I pull into the garage, the house server senses it and syncs new data to it.

This can be supplemented further by having it auto sync to a computer in your office whenever you pull into work. Add in some monitoring so you can get a phone alert if any of the synced copies are more than a few days out of date, and you are almost golden.

Re:I Nearly Lost All of My Data by mikeash on Saturday January 19, 2019 @06:49PM (#18950007)
That’s on-site way too often for my tastes. If your house burns down while your car is in the garage, there’s a good chance you’ll lose the backup too. Adding a computer in your office fixes that, but why not just send your backups to it over the internet instead of using this ad-box vehicular transport protocol?
Re:I Nearly Lost All of My Data by tiernano on Saturday January 19, 2019 @07:53PM (#18950252)
Never underestimate the bandwidth of a station wagon full of tapes travelling down the highway...
Re:I Nearly Lost All of My Data by ocdtrekkie on Saturday January 19, 2019 @09:28PM (#18950565)
Initial seeding of your offsite backup over the Internet would be a pain, but most people's valuable data change rate isn't high enough to significantly tax modern broadband connections. I sync a few gigs of data a week and I never even notice it happen.
Re:I Nearly Lost All of My Data by Jaruzel on Sunday January 20, 2019 @03:42AM (#18951967)
When I had my new 'Man Shed' (It's a large workshop really[1]) built at the end of my garden, I ensured I could extend my network to it. I have an old NAS with a couple of large drives in it, and I have scheduled backups that write to it from the main file server in the house.

It's not perfect, but it's way better than not having any offsite backups at all. I have a deep distrust of Cloud storage services so for me I think this setup is the best solution I'm going to get.

---

[1] I'm in the UK, so our typical 'sheds' are absolutely tiny - this one is not.

Re:I Nearly Lost All of My Data by dorfsmay on Sunday January 20, 2019 @11:19AM (#18953689)
Distrust in cloud storage in which way? What are yafraid will happen. Which data are you afraid is going to end up in whose hands?

The data I really care about is encrypted right on my laptop,and I backup that encrypted data.

Re:I Nearly Lost All of My Data by mattowen_uk on Monday January 21, 2019 @03:03AM (#18958590)
It no so much that, but more of a control aspect. Once my backups are on someone-elses-computer I've lost control of them, and knowing my luck the day I need them will be the day the cloud provider has an outage, or even worse, goes offline.
Re:I Nearly Lost All of My Data by dorfsmay on Monday January 21, 2019 @09:43AM (#18960650)
There is no way the big cloud providers, AWS, GCP, Azure go offline without a notice period (even medium size one like DO).

Use a solution that you can easily switch from one provider to another one, switch when there is any warning that the one you use might be in trouble. In the same line, make sure people in your family (or technically savvy friends) understand your system, are able to switch and know to pay the could provider bills if you're not around - unless it is ok for your entire storage to disappear when you die of course.

Re:I Nearly Lost All of My Data by jordache on Saturday January 19, 2019 @05:53PM (#18949738)
how do you power the usb drive whilst it's syncing in your car, while parked in the garage?

What if the drive gets stolen?

Re:I Nearly Lost All of My Data by derekp7 on Saturday January 19, 2019 @06:10PM (#18949817)
It is hooked up to a USB battery pack, which in turn is plugged into the accessory port on the car. The hard drive powers down after the data transfer is finished.

All data is encrypted before sending to it. If it gets stolen, well it is only one of the copies of the data (however it lives hidden under the dash, and is small enough that it looks like a piece of car equipment).

Re:I Nearly Lost All of My Data by bronco21016 on Saturday January 19, 2019 @08:31PM (#18950384)
Do you ever worry about the Li-Ion pack having issues in the hot car?
Re:I Nearly Lost All of My Data by ocdtrekkie on Saturday January 19, 2019 @09:32PM (#18950587)
I've never specifically used a Li-Ion pack in my car PC setup, storing it in the heat would worry me a bit, but surprisingly, operational temps in a car aren't bad: If he's using it after he drives it, the car has likely been cooled or heated for driver comfort, and it'll take time after he parks for the temperature in the car to return to "outdoor" levels.
Re:I Nearly Lost All of My Data by bronco21016 on Sunday January 20, 2019 @11:10AM (#18953633)
My bigger concern is just storing it. It sounds like he’s using just a regular powerbank type battery which is li-ion. Letting it sit in a parking lot for a day in the summer then turning it on probably isn’t a very good thermal situation. I wonder if some sort of sealed lead acid might be better. Far more inconvenient for power management though as some sort of circuit would have to be created.
Re:I Nearly Lost All of My Data by jrowley on Saturday January 19, 2019 @06:31PM (#18949924)
Wow what a clever/simple elegant solution. I was wondering how you set it up so it wouldn't drain your battery. Excellent work!
Re:I Nearly Lost All of My Data by catmanjan on Saturday January 19, 2019 @06:01PM (#18949767)
He said it syncs when he pulls in so presumably a 12v power supply
Re:I Nearly Lost All of My Data by verytrivial on Sunday January 20, 2019 @05:19AM (#18952312)
Ha! That sounds like such a neat idea that I'm now skeptical that it is indeed just an idea! Do you have a write up somewhere? That sounds really cool.
Re:I Nearly Lost All of My Data by b1r6 on Saturday January 19, 2019 @06:24PM (#18949883)
This is brilliant! I think I'll hack something together for this soon...
Re:I Nearly Lost All of My Data by gtirloni on Saturday January 19, 2019 @06:00PM (#18949766)
Does the RaspberryPi have enough CPU for disk encryption?
Re:I Nearly Lost All of My Data by bhauer on Saturday January 19, 2019 @06:19PM (#18949845)
It doesn't need to, assuming you're using something like rclone [1], where the encryption is done on the "client," which in this case would be the GP's home server. The client does the encryption, treating the disk attached to the Raspberry Pi as an untrusted third-party disk. As long as you keep the decryption key safe (e.g., on a USB stick stored off-site), you should be good to go in the event that you need to pull data and decrypt it.

[1] https://rclone.org/

Re:I Nearly Lost All of My Data by chiph on Saturday January 19, 2019 @08:46PM (#18950429)
I've run Truecrypt on mine, and it works with small drives - 100gb or so. But it gets super hot, even with a heatsink. I wouldn't rely on it.

This was so I could use it to back up my Synology box to a set of external USB drives and retire the older Mac Mini I had been using. I'm still using the Mini...

In the case of the author, +1 for doing backups, but -1 for not establishing a chain of off-site copies (a safety deposit box at your bank, a relatives house that's some distance away, etc)

Re:I Nearly Lost All of My Data by mikeash on Saturday January 19, 2019 @06:50PM (#18950013)
You can do encryption with any amount of CPU power, it’s just slower if you have less. Backups are not typically a case where speed is extremely important.
Re:I Nearly Lost All of My Data by rocky1138 on Saturday January 19, 2019 @10:05PM (#18950703)
I'm not sure about disk encryption, but I know that the Raspberry Pi didn't have the juice to cut it when Syncthing was running, calculating hashes for my files. I eventually gave up, hoping that some day Go would support the use of GPU hardware to hash combined with accelerated drivers for the Pi's graphics card.
Re:I Nearly Lost All of My Data by nothrabannosir on Saturday January 19, 2019 @06:41PM (#18949963)
RaspberryPis can emulate Mario Kart on an N64, run Minecraft on Linux and even Mathematica at decent speeds; I'm willing to bet big bucks they can handle symmetric key encryption (which does not require much power).

If a crappy NAS can run disk encryption, so can a raspberry pi. They're deceivingly potent.

Re:I Nearly Lost All of My Data by hendry on Saturday January 19, 2019 @07:00PM (#18950057)
Eloquent except the Rpi has a terrible USB bus.
Re:I Nearly Lost All of My Data by sliken on Saturday January 19, 2019 @08:23PM (#18950359)
It got significantly better in the last generation. As a result the disk I/O and network are significantly faster. While the last 2 versions had GigE, the throughput almost doubled in the last generation.
Re:I Nearly Lost All of My Data by lostlogin on Sunday January 20, 2019 @04:06AM (#18952068)
> RaspberryPis can emulate Mario Kart on an N64

Yes they can, and Golden Eye. I have just played Mario Kart with the kid before bedtime. It stutters a little if you have too many karts on screen, but that’s not a problem when you’re winning.

Re:I Nearly Lost All of My Data by clanrebornyes on Saturday January 19, 2019 @11:26PM (#18951074)
I am trying to find cheaper device between NUC and Pi.

Lot fewer choices are available.

NUC is expensive. I wonder when will 8core ARM based NUC will arrive in the market.

No idea is NUC can be powered by Xiomi Mi 2i powerbank but a Raspberry Pi can be

Priorities:

1. Gigabyte ethernet

2. Small form factor NUC or smaller.

3. 8+ cores

4. Very low power consumption

Re:I Nearly Lost All of My Data by 8fingerlouie on Monday January 21, 2019 @09:19AM (#18960489)
You should give the Odroid HC2 (or HC1) a look (https://www.hardkernel.com/shop/odroid-hc2-home-cloud-two/)

It's an 8 core ARM SBC, with 2GB Ram, Gigabit ethernet on one USB3 bus, and a SATA connector on another USB3 bus. It can fully saturate spinning rush, though it might have problems with SSD drives. In any case, it will fully saturate your GigE link with even a slow harddrive.

It runs a standard Linux kernel, with the "driver" for the hardware added, which is why it requires a special build. Latest kernel version is 4.18. There is also an OMV build for it.

Mine uses around 4-8W, depending on how much the harddrive is being used. I've got a couple of them running as backup targets (Arq, Borg, etc) with a 4TB WD Red and Btrfs, and they've been rock solid.

If you need hardware AES, you should probably be looking elsewhere.

Re:I Nearly Lost All of My Data by adrian_b on Sunday January 20, 2019 @12:58AM (#18951442)
The 3rd and 4th are mutually exclusive. If you want the power consumption of a smartphone, you also have the computational speed of a smartphone, but that should be enough for many applications.

I have experimented with a very large number of devices between NUC and Pi.

While the best processors for such devices would be ARM processors (with Cortex-A76 or Cortex-A75), nobody offers adequate devices.

You can find only devices with obsolete slow ARM processors, e.g. RK3399, which are much faster than Pi but much slower than x86, or you can find development systems or modules with modern smartphone ARM processors, but those are much more expensive than a faster Intel NUC.

Therefore, for the moment the only sensible choices are devices with either Intel Gemini Lake processors or with Intel Y-Series processors.

The devices with Intel Y-Series processors are much faster, but they are also more expensive. While Zotac has presented at CES one such device, its price and time of availability are unknown.

For now, the only device available with Y-Series is "LattePanda Alpha". Considering that its price includes 8 GB RAM, 64 GB flash and the Windows licence (even if I wiped it and I installed Linux) it is cheaper than an i3 NUC where at the same price you have no memory.

It has everything a NUC has, except that it has one less USB port (it has 1 C + 3 A, while some NUCs have 1 C + 4 A). I have installed in its 2 M.2 connectors a NVMe SSD and a second Ethernet interface. The speed was excellent, because the Kaby Lake CPU was configured for 7 W TDP with 15 W TDP for the first 28 seconds. The included fan does not start unless you run a heavy workload and even then it is silent. The size is smaller than a NUC but larger than a pico-ITX board.

If you want something cheaper, or if you want, like me, both full-size DisplayPort & HDMI connectors (not DisplayPort on USB C), then you must choose a Gemini Lake device, i.e. either Zotac ZBOX PI335 Gemini Lake (with N4100, not to be confused with the obsolete ZBOX PI335 with N3350) or an ODROID H2.

The ODROID H2 is faster and possibly cheaper (depending on the memory you buy or you already have; ZBOX has soldered memory), but it is larger. ODROID H2 is NUC-sized while PI335 Gemini Lake is pico-ITX sized. ODROID H2 has 2 Ethernet, but PI335 Gemini Lake includes WiFi & BT and it comes in a closed case which will protect it in dusty environments (both have passive cooling). PI335-GK uses a 5 V power supply, so it should be easy to be powered from a power bank. The CPU TDP is configured for steady state 6 W and 15 W for the first 28 seconds. The idle CPU power is less than 2 W. I have not measured the total idle power of the computer. With the CPU halted, the power consumption should be much less, but I have not measured it.

Gemini Lake has a speed just a little less than a Snapdragon 845, but it is much faster than older ARM processors and than older Atom processors.

Re:I Nearly Lost All of My Data by snovv_crash on Sunday January 20, 2019 @11:28AM (#18953766)
There's the Intel Up board. 4 Atom cores, gigabit ethernet, 2xUSB3, 2xUSB2, HDMI and the same form factor as a Pi. You can get expansion boards that break out more USB ports (not on a hub, independent bandwidth), native UART and I2C. I've been playing with them for onboard computing on a drone, so far it is working really well. Price is about $100 for the low spec ones.
Re:I Nearly Lost All of My Data by netsharc on Saturday January 19, 2019 @06:04PM (#18949786)
Not OP, it'd be neat if it just uses FTP (or rsync) to transmit data which is already encrypted from the uploading-side...
Re:I Nearly Lost All of My Data by stedaniels on Sunday January 20, 2019 @04:50AM (#18952214)
With encrypted upload, you usually get a destination authentication thrown in for free, i.e. you're uploading to the right server :-)
Re:I Nearly Lost All of My Data by nvr219 on Sunday January 20, 2019 @08:30AM (#18952947)
1. yes 2. you would want to encrypt before sending to rpi anyway
Re:I Nearly Lost All of My Data by vonseel on Sunday January 20, 2019 @09:35PM (#18957176)
How does this not kill your car battery?
Re:I Nearly Lost All of My Data by justwalt on Saturday January 19, 2019 @05:38PM (#18949677)
That's a really cool solution.
Re:I Nearly Lost All of My Data by clanrebornyes on Saturday January 19, 2019 @11:11PM (#18950990)
I use syncthing for syncing when my raspberry pi joins a specific BSSID, sync starts.

It's susceptible to macspoofing but I hope my Pi won't join a spoofed network.

Re:I Nearly Lost All of My Data by okramcivokram on Sunday January 20, 2019 @12:15AM (#18951294)
Even if it does, isn't Syncthing traffic encrypted. Also, 'they' would need to spoof your other syncthing node for the first one to start syncing with it, and if they have that much info, you've already lost.
Re:I Nearly Lost All of My Data by atoav on Sunday January 20, 2019 @02:18AM (#18951643)
I use syncthing to sync (mostly important text stuff) between my two machines and my android phone. Once every day one of the machines uploads the changes via duplicati.