Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Easiest way to make a snapshot of the system?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
debiannoobie
Posts: 3
Joined: 2018-11-08 14:04

Easiest way to make a snapshot of the system?

#1 Post by debiannoobie »

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.

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

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

#2 Post by pawRoot »

Debian configs aren't at home folder, only some applications hold their config files in there, like bash, windows managers etc.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#3 Post by Head_on_a_Stick »

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.
deadbang

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#4 Post by llivv »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#5 Post by Head_on_a_Stick »

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.
deadbang

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#6 Post by llivv »

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.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

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

#7 Post by Bulkley »

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.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

#8 Post by GarryRicketson »

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
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

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

#9 Post by bester69 »

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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#10 Post by Head_on_a_Stick »

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:
deadbang

kevinthefixer
Posts: 190
Joined: 2018-05-05 22:30

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

#11 Post by kevinthefixer »

Head_on_a_Stick wrote:then you're completely fucked :mrgreen:
I always considered that a good thing!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#12 Post by Head_on_a_Stick »

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

Answer: only emotionally...
:mrgreen:
deadbang

Post Reply