covfefee
Posts: 1
Joined: Thu Jun 08, 2017 2:49 am

power outages

Thu Jun 08, 2017 2:53 am

Hello pi people!

My pi contains sensitive data that I don't want to lose. What is the risk posed by power outages/storms/etc.?

Is it enough that my power outlet has a surge protector, or do I need a UPS to guarantee that nothing is corrupted?

Thanks!

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: power outages

Thu Jun 08, 2017 12:55 pm

The first thing you need is a backup policy to safeguard your sensitive information.
The road to insanity is paved with static ip addresses

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: power outages

Thu Jun 08, 2017 12:59 pm

The answer to your question is: Yes. Get a UPS and you're good.

Of course, UPS's do fail (they wear out over time). When it starts beeping, it is time to buy a new one and then you will have to shutdown the Pi to connect it to the new UPS.
If this post appears in the wrong forums category, my apologies.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: power outages

Thu Jun 08, 2017 1:14 pm

Martin Frezman wrote:The answer to your question is: Yes. Get a UPS and you're good.

Of course, UPS's do fail (they wear out over time). When it starts beeping, it is time to buy a new one and then you will have to shutdown the Pi to connect it to the new UPS.
An UPS is not the solution to the problem of loosing sensitive information, UPS is a continuity feature.
Loosing sensitive information can be caused by hardware problems and software problems, and mostly by user problems.

If in doubt: the write ups of the register (www.theregister.co.uk) on the British Airways and ATO outages are very interesting.
The road to insanity is paved with static ip addresses

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26659
Joined: Sat Jul 30, 2011 7:41 pm

Re: power outages

Thu Jun 08, 2017 2:43 pm

SD cards fail - that's probably the weakest point. The Linux SW is pretty robust, the HW is pretty robust.

But backup, backup, backup and backup are the ways the protect the data from loss.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: power outages

Thu Jun 08, 2017 7:53 pm

And be sure to test your backups periodically​!
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

User avatar
rpdom
Posts: 17171
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: power outages

Thu Jun 08, 2017 8:03 pm

MaxK1 wrote:And be sure to test your backups periodically​!
Easy way to do that on a Pi is to backup your SD card to a new SD card. Shut down the Pi. Swap cards and boot up again. If it works then your backup is OK. If it doesn't you just revert back to the old card and try again. The old card then becomes the backup and the new card is the live system.

User avatar
davidcoton
Posts: 5026
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: power outages

Thu Jun 08, 2017 9:11 pm

covfefee wrote:My pi contains sensitive data that I don't want to lose.
Do you mean "sensitive" as in personal or commercially confidential (and therefore to be protected from unauthorised access), or as in valuable -- you lose time/income if you lose the data?
In either case backups are essential. Match the backup regime to the value of your data. Valuable data deserves at least two offline copies. In many cases one should be in a different location.

How often does your data change? How much harm is done if your backup is a day old, or a week old? If a day/week is acceptable, then follow rpdom's system and make a daily backup.
Then on Friday take the backup home, and on Monday bring the previous backup back.

If you need better security for fast moving data, you need to look at on-line replication to a second system, with no common point of failure.
(It is always possible to find a common point of failure, you just have to make sure that the likelihood of that event is low wenough to be an acceptable risk.)

If the data is personal, you may need to consider where it is stored and making each location secure. Keeping a copy of personal data (or even some commercial data) at home may not be acceptable.
covfefee wrote:What is the risk posed by power outages/storms/etc.?
The power fauilure can lead to a corrupted (and sometimes unrecoverable) SDCard. If that is your concern, a UPS is necessary -- search for "MoPower" for boards which may suit your need.
Signature retired

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: power outages

Thu Jun 08, 2017 9:14 pm

Unless the pi needs to stay up 24/7.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

Return to “Troubleshooting”