Easiest way to make a snapshot of the system?

New to Debian (Or Linux in general)? Ask your questions here!

Easiest way to make a snapshot of the system?

Postby debiannoobie » 2018-11-10 14:28

Hello,
What is the best/easiest way to make a backup of my system? I have Debian testing installed. I have googled and I found this one program called Timeshift but for some reason I cannot find it with apt-get install timeshift even though it should find it.
I'm also little bit confused that do I even need to have and complete image of my system. Some people say that they only backup /home and if something goes wrong they will install Debian again and just restore /home. Where are the Debian setting saved are they in /home or somewhere else?
And if I want that the backup will also restore all the programs and setting for them what is the best way to do this?
I'm going to install Nvidia drivers soon but I want to have a full system backup first so I don't need to start all over if something goes wrong.
debiannoobie
 
Posts: 3
Joined: 2018-11-08 14:04

Re: Easiest way to make a snapshot of the system?

Postby pawRoot » 2018-11-10 22:00

Debian configs aren't at home folder, only some applications hold their config files in there, like bash, windows managers etc.
User avatar
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland

Re: Easiest way to make a snapshot of the system?

Postby Head_on_a_Stick » 2018-11-10 22:03

I back up the family laptop using this method:

https://wiki.archlinux.org/index.php/Rs ... tem_backup

But for my own machines I just use github & gdrive to keep configuration files and suchlike, I don't do traditional backups at all.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Easiest way to make a snapshot of the system?

Postby llivv » 2018-11-11 07:30

It Depends
as usual their are many ways but which is the easiest Depends on how you setup theinstall and what you know about the features
available to that systems configuration.

If one knows about BTRFS snapshots (I do not) that is probably the easiest way.
If one knows about XFS dump that is another easy way.
A simple copy of your install is another easy way, if one understands the pro and cons.
Than there are probably tens of snapshot taking packages available in the debain repo alone
unfortunately timeshift is not one of them.
If you want timeshift you have to get it from github
https://github.com/teejee2008/timeshift
or pkgs.org
https://pkgs.org/download/timeshift
or sourceforge
http://antor44.users.sourceforge.net/
As always backup backup backup
when it's needed there is nothing easier
"as long as the restore from backup is testing and understood"
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5720
Joined: 2007-02-14 18:10
Location: cold storage

Re: Easiest way to make a snapshot of the system?

Postby Head_on_a_Stick » 2018-11-11 08:24

llivv wrote:If one knows about BTRFS snapshots (I do not) that is probably the easiest way.

Btrfs snapshots are instant and very useful but I wouldn't class them as a backup, but they're great for trivial un-delete actions.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Easiest way to make a snapshot of the system?

Postby llivv » 2018-11-11 14:58

It's always a good idea to have a backup. No?
How (often) and what is backed up is an individuals preference.

a few backup utilities available in the testing archive.
backintime-common
backup-manager
backup2l
chiark-backup
flexbackup
luckybackup

there are plenty more

edit - testing is usually not recommended for beginners
if that is you it's offered up for something to think about for the future.
Last edited by llivv on 2018-11-11 17:36, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5720
Joined: 2007-02-14 18:10
Location: cold storage

Re: Easiest way to make a snapshot of the system?

Postby Bulkley » 2018-11-11 17:03

Over the years I have tried several backup methods. My preferred method is a complete clone (including Grub) to another drive. I make a fresh clone before doing anything major on my machines such as a dist-upgrade.

Everyone has different needs. Do you need a daily backup, a running tally so to speak? If so cloning will be too awkward.

For really important documents you may need off-site backup.
Bulkley
 
Posts: 5668
Joined: 2006-02-11 18:35

Re: Easiest way to make a snapshot of the system?

Postby GarryRicketson » 2018-11-11 18:26

by debiannoobie » 2018-11-10 08:28

Hello,
What is the best/easiest way to make a backup of my system?

What one person thinks is the easiest way, might not be the same as what some one else thinks is the easiest way,
Personally, I think using the 'dd' command, (there is a learning curve), there also are a lot of instructions on using it, if one does a search, the 'man dd' command is also useful.
I also use 'rsync' to update my backups, except for the data bases, if you are using MYSQL or Maria Data base, it is best to do those separate, using the 'mysqldump' command.
I have never tried BTRFS, so don't know on that, but over the years I have tried many of the so called "easiest" clicky dickey GUI's and none were reliable, but really, to decide what is easiest for you, you need to try some of the various methods, then try using the back up you made, and see if it really works. For me , the dd command, rsync, and mysqldump is the most reliable route, maybe not the easiest , but what good is it being easy, if it is not reliable ?
User avatar
GarryRicketson
 
Posts: 5193
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Easiest way to make a snapshot of the system?

Postby bester69 » 2018-11-20 14:13

Head_on_a_Stick wrote:
llivv wrote:If one knows about BTRFS snapshots (I do not) that is probably the easiest way.

Btrfs snapshots are instant and very useful but I wouldn't class them as a backup, but they're great for trivial un-delete actions.


>> BTRFS

Im disagree here, I would go for BTRFS as a snapshot method backups.. Im using this method for several years and Its the easy way to rollback system to a snapshot, you can even go jumping from snapshot to snaphot (install another linux system above the root and come back later to the other installation)


In my opinion Btrfs is linux's god. :o You wont ever have to worry about losing your system or home data, as long as you have a propely snapshot.
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1220
Joined: 2015-04-02 13:15

Re: Easiest way to make a snapshot of the system?

Postby Head_on_a_Stick » 2018-11-20 16:06

bester69 wrote:You wont ever have to worry about losing your system or home data, as long as you have a propely snapshot.

...until your hard drive dies, then you're completely fucked :mrgreen:
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Easiest way to make a snapshot of the system?

Postby kevinthefixer » 2018-11-25 01:06

Head_on_a_Stick wrote:then you're completely fucked :mrgreen:

I always considered that a good thing!
kevinthefixer
 
Posts: 107
Joined: 2018-05-05 22:30

Re: Easiest way to make a snapshot of the system?

Postby Head_on_a_Stick » 2018-11-25 12:12

^ isn't that like the old joke?
Question: have you ever paid for sex?

Answer: only emotionally...

:mrgreen:
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable