Showing posts with label backups. Show all posts
Showing posts with label backups. Show all posts

Wednesday, March 28, 2018

Downloading my Twitter archive

With all of what is happening on Facebook and the privacy I was thinking about Twitter and getting a backup of what I can from that service.  I have downloaded my Google archives and Facebook and started to dig to see how to get Twitter.  It is fairly easy to find! 

I am doing this from my browser and not the app on my tablet or phone so it may be different there.  At the top right hand side this is your 'profile & setting' button to the left of the blue tweet button.  Towards the bottom there is a 'settings and privacy' option.  Once you select that you can scroll down until you see the button labelled 'Request your archive'.  Once you click on that it will pop up a screen that the request was received and you will receive an email with the link.  It will be interesting to see what is in that archive and also to have a backup of all of what I did there.

Main Twitter page where you start

Select Settings and Privacy

Popup when you request your archive

Sunday, March 18, 2018

Looking at one Linux Distro for home

At home we use Linux on almost all of our computers.  The only exception right now is one laptop with Windows 10 so I can run my tax software.  Each machine has its own Linux that best works for that device.  That is getting to be a bit of a pain as some packages are not available for some distros (like the Pale Moon browser).

My netbook (Acer Aspire One D255E) I bought years ago as there was a chance I would be traveling and I wanted a light weight computer that would allow me to quickly pick up email, browse, chat with family.  The machine originally had Windows 7 starter and that was quickly replaced with Linux Lubuntu.  I picked that as it was very light weight and quickly launched.  While Lubuntu is a great package there are things I couldn't do easily and I had to write bash scripts to do those tasks (like turn off the touch pad when logging in).  It also would not play one of the browser based games I play (Runescape) as the latest Firefox and Chrome disabled the ability to launch Java which is why I am using Pale Moon.  I normally don't play online with the machine (which is what I am composing this blog entry with), but, it is nice to have if I start to travel again.


My wife's laptop is running Netrunner as that worked on machine as other distros had problems with the video card or the wireless network card.  It is a great distro, and worked well on her machine.

We have a media tower in the living room hooked up so that we can stream shows, plug in USB sticks for picture shows and a quick way to browse the net without having to bring down one of the laptops.  It is running PCLinuxOS and that is also an excellent distro as just about everything is there (including Pale Moon).  It is also what I am running on my HP laptop and it just works and is not too bad on system resource usage.

I wanted to consolidate everything with PCLinux, but, when I tried it on the netbook it would either crash as start or run so slow it was almost useless.  Not a problem as I could always use Lubuntu if I could get PCLinuxOS to work on the wife's machine.  When I did the launch it would crash on the video card that the machine had and I was not willing to play around with settings to make it work in case my wife did something and break the setup.

Next up i tried Linux Mint on the netbook.  I figured if it worked well there it should work well on the other machines.  It did launch and worked very well.  It is a bit slower that Lubuntu, but, not enough to be a deal breaker.  It recognized everything and just worked.  I proceeded to make a complete backup of all my folders and then reimaged the machine with Mint.  A few obervations:
  • Pale moon isn't available, but, their web site does give instructions on how to download & install.  The only quirk I had was when I tried to install with my non-admin account it would accept the password for the admin account (more about that later).  I signed out and then launched the admin account and did the install there without an issue.
  • The first account you define when starting up is by default the ADMIN (root) account so be very aware of that.  That is what I had to log in as when doing the Pale moon installation from.
  • There are a lot of patches so when you launch for the first time do it from admin and get everything patched up.  Once you get that done define a regular account that you will use every day.
  • It is slower than Lubuntu so be patient at times.  When I log in there is about a 15-20 second wait from when I supply my userid and password and when the main screen shows unlike Lubuntu which takes a couple of seconds.  The same is true for logoff.
  • There is a setting for mouse where you can go to the touchpad and click the option to turn it off when it detects an external mouse.  This is much nicer than Lubuntu where I had a custom bash script written to toggle the mouse off.
  • The screen is smaller than a normal laptop and some of the screens do not fit and cannot be resized to fit.  I found a workaround by holding the [ALT] key and holding the left mouse button I can move the window around.
  • Most software you need is automatically installed.  The only thing was the browser I use and then the XSANE package for when I scan documents.  It does come with Scanlite that I may try later on.
Later on I will have to plug in the USB stick with Mint into my wife's machine and see how it all works.  I am hoping that it 'just works' and then I can image her machine to Mint.  I have already done a full backup of all her documents.

Last task will be later in the evening on the media box and re-image that machine to Mint.  I don't have to back up anything there as we don't save files, but, use the Internet for content.

End result is that I should be down to just two distros at most (PCLinuxOS and Mint).

Update 1:

Jane's machine has been updated to Mint.  I still have to finish configuration, but, the system boots up and her account is active.  Next up is to restore the backup of her documents, install Thunderbird for email and a number of games she likes to play.  The only machine left to convert is the media box as I think I will leave my main machine alone (PCLinuxOS).

Saturday, July 22, 2017

Upgraded PCLINUXOS and a new mouse

A few things that I had to do for the Linux box.  For the last couple of weeks I have noticed at times I would get a double click on the mouse when I pressed only once.  I am not surprised there as the machine is used for a MMORPG (Runescape)for at least one hour a day.  Reading online forums it is somewhat common and if you are brave you can disassemble the mouse and fix the issue.  I am not willing to do that so I checked out the stores and the Logitech mouse was on sale and I picked up a new one.  The old one still works and I will take the batteries out and store it as an emergency mouse.

The other thing is PCLINUXOS has stopped upgrading KDE 4 and a couple of packages I use are not being upgraded.  This is not a huge deal as it has been a few years so I am overdue for a system upgrade.  I used the backup software to create a TAR, but, I didn't notice I clicked the option to compress every file.  I made two copies, one to a USB hard drive and a second to a USB stick.  I then verified that the files were readable on another system before I started to reformat and rebuild this machine.  Like before it didn't take very long to install and reboot.  That is when I noticed that all the files I backed up were compressed with the BZ2 extension.

I did a lot of online reading and found a number of forums with fancy scripts that could do the work, but, rather than me taking a few hours of setting up a script and then run I would do it all manual.  It isn't as bad as you might think.  The major directory was all of my files on Google and I just reinstalled GRIVE2 and re-synced in about 30 minutes.  The other files I used midnight commander, navigated to each directory and manually typed 'bzip2 -d *.bz2'.  Midnight commander has a nice feature, if you press [ALT]-P it will bring up the prior command(s).  I used that for the Thunderbird, Firefox, documents and photo folders and in about 1 hour I was done.  I had to do each folder and sub-folder as bzip2 didn't have an option I could see that would allow me to automatically unpack recursively the folders.

KDE5 does look somewhat similar to KDE4 so the change isn't that jarring.  The theme that was the default I wasn't thrilled with, but, that is also easy to change.  So far it seems to be running smoothly and it feels faster (I haven't done any timings there).

There are still a few more things like configuring my network printer, reinstall the XSANE scanner software, but, just about everything else is there by default.  I also have to get accustomed to the new mouse as it is a bit smaller and I am accidentally right-clicking the mouse.

Sunday, January 01, 2017

Software and Tools - Backups

One of the most important things you can do after you secure your device is to make regular backups and just as important is to test your backups.

Why backup?

  • Hard drives fail.  It doesn't matter how new the drive is or even if it is a SSD they will fail sooner or later;
  • You lose your device or it is stolen;
  • You drop your device and now it does not work;
  • When you patch or update your operating system it fails.  It doesn't matter the O/S you are using, I have had failed Linux updates and it required me to rebuild the machine;
  • You migrate to a new device and want all the files on the old machine moved to the new machine;
  • You finger slips and you accidentally delete an important file/directory; 
  • There is a disaster (ie. fire or flood);
  • Your device(s) infected with a virus or a trojan.  Again, it doesn't matter the O/S you are using, there are nasty programs out there that works in Windows, Linux and OS/X.
If one or more of the above happens you will need a backup so that your important documents are available to you when you rebuild the device or copy to a new device.  I have had people come to me with dead and dying devices asking if I can pull off their data and they have not made any backups.  Too often I cannot recover all of their files and important documents, images, videos are lost and they don't have any backups.

Things to think about

How often do you backup? 

  • That all depends on your personal preferences and how many documents you are adding to your device;
  • If you don't create very many then it may be safe to backup infrequently (monthly); 
  • If you create a lot of files (like scanning family photos), then frequent backups (daily) may be a good thing;
  • Once you set a schedule stick to it.  I put up a recurring reminder in Google calendar to remind me of when backups should be run.  Also you can set up a recurring task in Windows and Linux (cron) to run your backup scripts on a set schedule.

How many copies do you want to keep?  

  • Again this is a personal preference, but, multiple full backups is a good thing just in case one fails for some reason; 
  • An option here is a monthly full backup and then weekly backups of new/changed (differential backups) files;
  • Another reason as backups may fail and if you have only one copy then you have nothing to go back to.  I know this happens as decades ago when at work we were doing a DRP (Disaster Recovery Plan) exercise at work and one of the corporate backup tapes failed.  It wasn't a major problem as we did keep multiple backups and restored from an older image;

Off-site location for your backups?  

  • It doesn't matter if you have a good set of backups if you cannot get access to your site;
  • How secure is the off-site.  If you have sensitive information you don't want anyone getting access to the backup;
  • You should also figure out who should have access to your backups and let them know where it is and how they can get access to the backups if required;

Media for backups.  

  • Decades ago floppies were the media, then CDs followed by USB drives;
  • When you backup make sure that the tools, hardware and software is there to allow you to read the backups.  An example of this is some time ago I had to pull off backups from my father-in-law 3.5" floppy drives as he didn't have a floppy drive in his machine.  We were lucky in that I have an external 3.5" USB floppy drive for this and it was set up in Linux.  I also have an external CD drive and a blu-ray drive (call me paranoid) so I can pull files from backups in that format;
  • To the cloud.  Don't depend on that as your main backup as it may not be there when you need it.  I like Google drive for a secondary backup myself and the bonus is that the files I put there are available anywhere I have a web browser (and the firewall allows access).  With the various sites getting hacked I also don't keep files there that are sensitive and when I do put up a file of that nature I use encryption on the file/directory.  I also have a small script using GRIVE in Linux to pull a backup from GOOGLE drive to my machine.

Software and file format for backups.  

  • Over time operating systems do change and the software that did the original backup may not run on your new device and the new devices may not even be able to read your backups;
  • I tend to work with the lowest common denominator for backups that does work across platforms.  I prefer to use "ZIP" files as I know Windows and Linux both can work with that file format.  I assume OS/X will be able to read them too, but, I don't use that operating system so I am not 100% sure;
  • On my Linux machine I am partial to KBACKUP.  It is fairly easy to set up and use and it stores the files in a format that I can open in an Linux distro and Windows;
  • On my Windows box I use a simple XCOPY routine.  It isn't pretty, but, it works and the files are in a format that my Linux machines can read;
  • For my Android devices they get backed up to Google drive;
  • Several times a year I take one of my backups and plug it into a different machine to see if it is readable and I can pull one or more files off the backup.  Make sure what is backed up can be restored!  It is also a quick and easy test to see if your restore steps work and if there is anything else you should be doing when restoring from a backup;

When you restore.

  • If the restore is due to a virus or a trojan I strongly recommend that you don't ever use your backups until you have a clean and patched machine.  If the machine is still infected and the media you are using can be written to you don't want those backup files corrupted;
  • Make a checklist of what you need to do the restore and the steps performed when doing a restore.  This includes steps on how to verify that the restore worked;

My KBACKUP routine

Here are screen shots of my starting KBACKUP, running the backup and when it finishes.
Shortcut in my toolbox

Loading my backup profile

Directory & file list for backup

Backup running

Backup done with filename

Monday, December 26, 2016

Software and Tools - Social


A large part of people being online is the various 'social' applications.  For myself the major ones I use is Twitter and Facebook.  There are others, but, the basics I will cover here should be applicable to the other sites/applications.  I use Twitter mainly to quickly comment and notify about various events and information that I find of use.  I have the account linked to my Facebook so that my friends and family can get the information at the same time.  I like Twitter as it is small enough for my low end smart phone to run without a problem.  Facebook to be blunt, is a pig on resources and when I did have it running on my phone it would take 5-10 seconds at times to do a simple action like posting an update.  Facebook runs well on my tablet and my laptop and that is the main way I socialize electronically with friends and family.  I use both to supplement my contacting friends and family and it does not replace face-2-face.  I like them both as I can quickly set up photo albums of events and quickly share them for those who could not make it to the event.

One of the first things you should do when joining is to read the terms and service.  I know they are extremely long, boring and full of legalese, but, you should be aware of the basics just-in-case there is a problem in the future.

Settings

Next up is to check the settings, especially the privacy settings to make sure you share only what you are comfortable with and turn off the rest.
Facebook Android Client Settings

Facebook Android Client Privacy Settings

Twitter Android Client Settings


Twitter Windows 10 Client Settings
Facebook Windows 10 Client Settings

As you can see above the applications have a similar look-and-feel and the web browser rendering looks very similar.  Take 15-30 minutes and navigate through the various settings and read up on what they do and then set your account to what you want people to know about you and the marketing firms gets to see.

Once you are set up then you can think about what to post.  What ever you post always assume that your employer can see all your postings so exercise some prudence on what you post!  You may have your account locked down so that only friends and family can see what you put up, but, if they re-post or share and they don't exercise good judgement on their privacy settings they can expose what you put up.  I have seen people put up photos of events that to put it kindly was less than a positive image they wanted to project socially and professionally.  When in doubt ask yourself - what would mom think if she sees it?

Security

On the security side of things be careful on what links you click, especially in Facebook.  I have noticed a large increase in what is claimed to be news (or at least what people want to you think is news), but, is at best clickbait or trolling and at worst a link to sites that may contain scripts that can infect your machine.  Best thing I can say is to exercise caution with links to news.  If the articles come from friends and family still exercise caution, but, if it is a promoted article then be very suspicious.  Most of the clickbait sites are there to make money by showing you a lot of ads and the content at best is misleading.  For the fake news sites they tend to show to people articles written in a way to inflame them (or troll them).  Personally when I get unsolicited 'ads' I click the drop down and pick the option telling Twitter/Facebook that they are not interesting.  Before I re-post a tweet or a Facebook news story I check out the article and review it.  If it is clickbait, inflammatory or misleading I just ignore it and not give them additional views by re-posting.

When I am done with my session in Twitter and/or Facebook I log out of the account.  It is a bit of a pain, but, if for some reason some gets access to my phone, tablet of PC they don't get easy access to my accounts.  When I leave the machine I also lock it!  It takes only a few seconds to unlock the machine and then log back in, but, if someone gets access to that device they can destroy my account and credibility in a few seconds.

Another thing I strongly recommend is a good anti-virus package.  It may not stop 100% of the nasty virus/Trojans out there, but, it is another layer of defense to make it harder to get access to your device.  You can read my short blog on this topic to give you an idea of what is out there.

Adding friends/family/businesses

One of the other things I am very careful of is adding people to Twitter or Facebook when I get a request.  It does not matter who it is doing the request!  All friends/family get vetted as to who they are before I add them.  I have received requests from people claiming to be a friend or family, but, when I check with the person directly I find out they didn't make the request.  When that happens I have the friend or family member report it to Twitter or Facebook and I do the same.  On Twitter I regularly get requests to add people and I  review them very carefully before I add them.  For a while the requests were from very questionable accounts and the content and images were not the type I wanted associated with my account.  In the past several months I think Twitter has gotten better nuking the accounts quickly as it is a very rare event when I get such a questionable request.  Every couple of weeks I review who I have linked to and those who link to me and verify that the accounts are still legit and the content is what I want associated with me.  I have found that some Twitter accounts looks legit for a month or two and then the true nature shows itself.

Images

On uploading images I try to be careful of what is uploaded, especially when someone tells me they don't want a particular photo posted.  I also resize the image to around 1024x768 or 2048x1536.  Not everyone has high speed internet and at those resolutions the image is still good enough and is small enough for them to download quickly.  I keep the originals on my machine so if they want the original image I can send them that when requested.

Backups:

Twitter does have the ability to backup your posts.  The link on how to do that is here.  Facebook has a similar facility and the link on how to do that is here.  I strongly recommend that you do this now and then.  If for any reason you lose access to your account you have a backup.  When you backup your accounts you may also want to think about how to backup your phone/tablet/PC at the same time.  Machines do fail and I remember a person calling me to see if I restore their hard drive.  They had thousands of images and a lot of the pictures of their children when they were small was on the failed drive and they had NO backups.  I couldn't restore a lot of images, but, I could restore several thousand images.  They now have an external USB drive they backup their files to on a semi-regular basis now.  External USB hard drives are fairly inexpensive and capacities are in the multi-terabyte range now. 

Saturday, August 27, 2016

Android blogger app - minor issue & fix

I have an Android tablet I use for email, Facebook, Twitter and light blogging.  The App I use is Blogger from Google.  I like it as it is simple and fast and normally very stable.  Today when I was syncing up my latest blogs I got an error with the account and it wanted me to add one.  I tried to add back in my current Google account, but, it wouldn't let me.  The fix was to uninstall the app and reinstall.  When it is reinstalled it will ask me for what account and I selected my main Google account.  Once that was done I got my blog and posts back.

I like the app as it allows me to do a quick backup to my Android device and I can quickly compose a blog when traveling and don't have network access.  I don't need all the bells and whistles, just be able to compose the basic text of the blog.  When I have access to a network I use my Linux laptop to clean up the blog and add any images required.  The images are stored in my Google Drive so I have the images where ever I go even if I don't have my laptop.  When I get the laptop I then run my Linux Bash script to sync the local drive with Google drive.

Next up is to do more reading about Blogger and see if there is a way I can script a backup of my blogs to the Linux machine so I don't lose my work.

Update:  I found there is a backup option.  Google has a post on how to do this.  It worked, but, it is a massive XML file.

Update 2:  There is a facility called Google Takeout.  It allows you to backup more than just blogger. You pick off what you want to backup and then it builds a ZIP file that they will send you a link to download the file.  Time to test this out.

Starting to build the backup

Waiting for that email, USB stick is ready!

Received the email that the backup is ready.  It is two files and several gigs for each.  This is a nice tool that allows you to backup your data.