LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2023, 04:42 PM   #1
Flatulus Maximus
LQ Newbie
 
Registered: Apr 2023
Posts: 23

Rep: Reputation: 2
Advice regarding backups?


For the moment, I have Timeshift (Mint Cinnamon) going to a 64 GB USB drive. I get the sense that's not complete backup protection, plus I wonder if that's enough space just for Timeshift. I'll likely buy an external HDD for Linux only backups. Should I direct Timeshift to that drive, or is it OK where it is? (It feels really odd not having Macrium available to this OS; I've used it for more than a decade in a Windows environment.)
 
Old 06-01-2023, 04:59 PM   #2
Grobe
Member
 
Registered: Aug 2019
Location: Close to north
Distribution: Fedora
Posts: 117

Rep: Reputation: Disabled
Well, Timeshift as backup isn't helpful if the storage device itself stops working. A backup should always be located at a different storage device.
 
Old 06-01-2023, 05:35 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Timeshift will backup whatever you select. Timeshift uses rsync snapshots as you have it configured which basically creates one complete backup and then only those files that are new or changed. You also select how often you backup and how many backups you want to keep which determines how much space you use. I am not a fan of using flash drives as backup and prefer using an external SSD or HDD.
 
Old 06-01-2023, 06:20 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by michaelk View Post
I am not a fan of using flash drives as backup and prefer using an external SSD or HDD.
Ditto. It's not obvious from this post that you are using a flash "key", but your other problems creating partitions on it make it likely.

It's good you're taking backups to an external device, but last I looked timeshift only backed up the system by default. Not your user files. It can be setup to include them, and it will allow selective restores. As for space usage, after a while it settles down and doesn't continually increase as it only keeps a set number of backups. Here is the section from the install guide - plenty of guides online to show how to add your /home. 64G should be plenty for a default setup, but get a real device.

I see Mint has taken over development of timeshift, so it's likely it will become a more general backup tool over time.
 
Old 06-01-2023, 09:27 PM   #5
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 336

Rep: Reputation: Disabled
Please bear in mind, when you read my reply, that I have not used timeshift so don't know much about it.

Quote:
Originally Posted by Flatulus Maximus View Post
For the moment, I have Timeshift (Mint Cinnamon) going to a 64 GB USB drive.
If, more likely when, the internal drive dies (as it will one day) you'll only be able to recover whatever is on the 64GB usb, so I suggest as a matter of urgency you back EVERYTHING you want to keep onto an external drive.

Quote:
I get the sense that's not complete backup protection,
So do I.

Quote:
I'll likely buy an external HDD for Linux only backups.
I'd back up EVERYTHING, irrespective of OS to an external drive.

The external drive should be at least as large as the internal drive(s).

When creating the external drive I suggest using the copy command.
Code:
 cp vr /home/ /external drive
and expect it to take numerous hours.

Once the external drive has everything on it, then to keep it current I suggest using the rsync command
Code:
 rsync -vur /home/ /external drive
Quote:
It feels really odd not having Macrium available to this OS; I've used it for more than a decade in a Windows environment
Learning something new often feels odd, but stick with linux. You'll get the hang of it one day...... even if that day is, currently, decades away.

By the way if you format the external drive to NTFS windows should acknowledge it's presence...... Windows ignores most drives with a linux format.

Last edited by quickbreakfast; 06-01-2023 at 09:29 PM.
 
Old 06-02-2023, 07:11 AM   #6
Flatulus Maximus
LQ Newbie
 
Registered: Apr 2023
Posts: 23

Original Poster
Rep: Reputation: 2
I really appreciate this discussion. I'm a long-time believer in backups to external hard drives, too. The flash key is only temporary, for Timeshift to stay happy. I'm also retired and on a fixed income. The next discretionary expenditure will be for a minimum 1 TB external HDD. The recent experience formatting the flash key made me think I'd have to do something similar with the external drive. With Windows systems you buy it, plug it in, and back up. I figured I'd have to do something different with Linux. (I have a Toshiba Canvio drive I'm using on this Win10 machine. Just for chuckles I thought I'd plug it into the Linux PC next to it and see what, if anything, it reads. I have yard work to do first, before it hits 90 outside.) Quickbreakfast: you mentioned formatting to NTFS. I know Windows could read it, but does Linux? Also, do you dislike backup software run with the GUI?
 
Old 06-02-2023, 07:37 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
linux can read/write to NTFS filesystems but in the case of Timeshift I would still use a native file system like ext4 since it uses hard links. Typically external drives are already formatted as NTFS so you will need to reformat to ext4.

You could split the Canvio drive into separate partitions, the first for Windows and the second for linux depending on size and how much space you need for backups.
 
1 members found this post helpful.
Old 06-02-2023, 10:35 PM   #8
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 336

Rep: Reputation: Disabled
Quote:
Originally Posted by Flatulus Maximus View Post
Quickbreakfast: you mentioned formatting to NTFS. I know Windows could read it, but does Linux?
Yes.

As noted by the above post/moderator, Linux can read and write to NTFS.

When ever I obtain a HDD the first thing I do is format it, cause I didn't know it came formatted.

Quote:
Also, do you dislike backup software run with the GUI?
I have no problems using the GUI for doing backups. It's just that I find updating using the command line/terminal is what I find easier, and slightly quicker.
 
Old 06-02-2023, 11:23 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,658

Rep: Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708
I spent most of my professional life backing up to tape. If you back up to disk, make sure that you can address or move that disk off site so that if something takes out your computer it cannot take out your backup in the same event.

Now: before we go on we need to talk about purpose. IF you do not have a clear purpose for the backup you cannot possibly engineer it to accomplish your purpose. Possible goals for backups: Disaster Recovery (requires a plan to restore to new iron), data security (you must identify the data and determine what level of loss you are willing to accept), others depending upon your specific operation and needs.
What data do you need to back up and why?
If a restore is needed, how close to "current point in time" must you restore to consider it success?

You must also consider resources. I have extra hardware and can load a BURP server and back up all my machines over network. I do not own a suitable tape drive, so using a backup server with backups (images) of the backup server storage to media that I can transport off-site makes sense. A portable external USB drive with enough capacity can serve, but you need multiples to do generational backups and cover the case for a backup drive failure or destruction during backup.
What resources do you have for this?
If it is justified, and you afford additional backup media?
 
Old 06-03-2023, 08:07 AM   #10
Flatulus Maximus
LQ Newbie
 
Registered: Apr 2023
Posts: 23

Original Poster
Rep: Reputation: 2
It was too hot, and I'm to old to stay out and work as long as I wanted to. I did try my Toshiba external drive (used for Win backups) yesterday on the Linux PC. So I discovered NTFS is applicable to both systems. Then I copied some .mp3 files to a flash drive formatted exFAT, and was able to transfer to the Linux PC. I don't think I want to mix Windows backups with Linux backups on the same drive; I never underestimate my ability to screw things up. To wpeckham: Wow! I am constantly reminded how little experience I have outside my own little sphere. I remember the days of tape, although mine were with little QIC80 drives for my small business, and no networking. My primary concern is to prevent data loss. Thankfully external HDD's are not too expensive. I am of limited means, but learned early that you do not scrimp on backing up data. I wouldn't trust a flash drive as a long-term solution either.
 
Old 06-03-2023, 09:44 PM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,658

Rep: Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708Reputation: 2708
The last tapes I used were, I believe, LD something 124TB tapes that were rated 248T with compression. We did not get quite that much compression. I remember those small (? 80G, 40G ?) tape drives. Man, those would be terribly inadequate now, but they were GREAT when hard drives at 2G were MASSIVE! ;-)

I forgot one item: testing. Until you test that you can restore from that backup onto a different machine you have no reason to believe it will work. You need not test every backup, but test every month or two to make sure your backup system has not gone wonky on you.

If you only need to protect data, not the system, then make sure that you are only backing up the data folders. That will save space and extend the life of your backup media. Make sure you have OS images and can reinstall the Os and applications (keep a record somewhere, with one copy with your offsite backups) and recover becomes easier.

Keeping things simple and well documented will help avoid panic in case of a failure. Disasters you have planned for by backing up cause less damage than mistakes due to panic when things go out of control. And things ALWAYS go out of control: it is a question of when, not if. Nothing is so well designed that it will not fail, but having a plan for when that happens makes everything less painful.

You are on the right track.
 
Old 06-03-2023, 09:57 PM   #12
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Flatulus Maximus View Post
you mentioned formatting to NTFS. I know Windows could read it, but does Linux?
Depending upon what you are backing up NTFS may not be the best choice. Linux file system ownership and permissions have not been retained in ntfs for the most part, so a simple backup and restore may not have the effect expected from a backup with the file system differences.

I always recommend that one use the same file system as is being backed up for the backup storage, especially if using a copy format and not doing any additional manipulation of the data such as zip, tar, or similar.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XSIbackup - do backups overwrite existing backups robertkwild Linux - General 3 11-14-2020 09:33 AM
Switching from dump tape directory backups to NAS disk backups on RHEL 6 Jerry_C Red Hat 0 06-05-2013 12:44 AM
Ok Ladies, Im lookin for your best advice here; windows incremental backups to ubuntu Geneset Linux - Networking 1 10-01-2008 05:49 AM
Newb question regarding backups Tom@Aspirus Linux - Software 1 10-04-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration