How to back-up/snapshot a Debian installation?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
johnflamar
Posts: 2
Joined: 2021-11-07 17:34
Has thanked: 1 time

How to back-up/snapshot a Debian installation?

#1 Post by johnflamar »

Hi all,

As it took me quite a bit of time and research to configure my Debian installation to my taste, I'd like to create a snapshot of it. The official Debian documentation contains a script for that purpose on https://www.debian.org/doc/manuals/secu ... ot.en.html

But as far as I understand this script writes data to a floppy disk, which I do not have. As a newbie I'm not quite ready to modify scripts to use other - more modern - devices. So I wonder, what methods do other Debian users use to create a back-up of their system? Or what method would you recommend for novices?

Cheers,
johnflamar

PS:
1. If at all possible, I'd prefer not to use a solution based on sector by sector copying (in order to save disk space).
2. The notebook has a cd-rom drive, so the back-up doesn't have to be created from a system that is live.

User avatar
sunrat
Site admin
Site admin
Posts: 7483
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 135 times
Been thanked: 670 times

Re: How to back-up/snapshot a Debian installation?

#2 Post by sunrat »

I use fsarchiver from a separate multibooted system to an external USB HD. You could instead use it from a live USB distro such as PartedMagic. It compresses well and doesn't copy empty space.
I hear Timeshift is quite popular and easy to use, and is also available in Debian repo - https://wiki.debian.org/timeshift
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

johnflamar
Posts: 2
Joined: 2021-11-07 17:34
Has thanked: 1 time

Re: How to back-up/snapshot a Debian installation?

#3 Post by johnflamar »

Cheers, @sunrat , that's useful information. I suppose I will use fsarchiver, as it doesn't require to be set up when I use PartedMagic.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: How to back-up/snapshot a Debian installation?

#4 Post by bester69 »

johnflamar wrote: 2021-11-07 22:55 Cheers, @sunrat , that's useful information. I suppose I will use fsarchiver, as it doesn't require to be set up when I use PartedMagic.
fsarchiver is best choice.. Ive always used fsarchiver..it never fails on restoring system; very easy to use (back and restoring process) and backup never gets corrupted
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
stevepusser
Posts: 13137
Joined: 2009-10-06 05:53
Has thanked: 56 times
Been thanked: 105 times

Re: How to back-up/snapshot a Debian installation?

#5 Post by stevepusser »

There is an AppImage of the MX Snapshot tool that should let you make a bootable and installable ISO of your present system: https://www.youtube.com/watch?v=-8y_mL2Sctc
MX Linux packager and developer

rodvitner
Posts: 13
Joined: 2019-07-14 10:16

Re: How to back-up/snapshot a Debian installation?

#6 Post by rodvitner »

I use Timeshift.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 772
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 140 times
Been thanked: 76 times

Re: How to back-up/snapshot a Debian installation?

#7 Post by cds60601 »

Monthly clonezilla here along with daily tarballs of /etc/, /root, /home
Supercalifragilisticexpialidocious

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: How to back-up/snapshot a Debian installation?

#8 Post by bester69 »

cds60601 wrote: 2021-11-13 14:24 Monthly clonezilla here along with daily tarballs of /etc/, /root, /home
In my opinion and experience, these are best options clearly:

for rolling back to previous state (home, etc, root) : btrfs (snapshots)
for data home daily backup : borg
for system backup: fsarchiver or btrfs
for cloud backup: borg + duplicity (backend rclone)
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: How to back-up/snapshot a Debian installation?

#9 Post by bester69 »

rodvitner wrote: 2021-11-13 12:58 I use Timeshift.
Use btrfs with Timeshift or btrfs + snapper-gui
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 772
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 140 times
Been thanked: 76 times

Re: How to back-up/snapshot a Debian installation?

#10 Post by cds60601 »

bester69 wrote: 2021-11-13 19:05 for data home daily backup : borg
This Borg you speak of, looks interesting. New project for this evening.

UPDATE: While interesting and may very well be a practical in most cases, this was not a good fit for my workflow and environment.
Still - a very good choice to consider.
Supercalifragilisticexpialidocious

Post Reply