Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #258397 > unrolled thread

Ok so Now which backup should I use

Started byMaureen L Thomas <silverorb@verizon.net>
First post2023-05-16 02:20 +0200
Last post2023-05-16 22:20 +0200
Articles 14 — 8 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Ok so Now which backup should I use Maureen L Thomas <silverorb@verizon.net> - 2023-05-16 02:20 +0200
    Re: Ok so Now which backup should I use <paulf@quillandmouse.com> - 2023-05-16 03:30 +0200
      Re: Ok so Now which backup should I use Jeremy Ardley <jeremy@ardley.org> - 2023-05-16 04:00 +0200
        Re: Ok so Now which backup should I use Charles Kroeger <mbone@gmx.co.uk> - 2023-05-16 08:00 +0200
        Re: Ok so Now which backup should I use Celejar <celejar@gmail.com> - 2023-05-17 04:10 +0200
          Re: Ok so Now which backup should I use Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2023-05-17 09:00 +0200
            Re: Ok so Now which backup should I use Jeremy Ardley <jeremy@ardley.org> - 2023-05-17 09:20 +0200
            Re: Ok so Now which backup should I use <tomas@tuxteam.de> - 2023-05-17 09:40 +0200
              Re: Ok so Now which backup should I use Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2023-05-17 14:00 +0200
                Re: Ok so Now which backup should I use <tomas@tuxteam.de> - 2023-05-17 14:10 +0200
              Re: Ok so Now which backup should I use Jeremy Ardley <jeremy@ardley.org> - 2023-05-18 09:20 +0200
                Re: Ok so Now which backup should I use Celejar <celejar@gmail.com> - 2023-05-18 23:40 +0200
    Re: Ok so Now which backup should I use David Christensen <dpchrist@holgerdanske.com> - 2023-05-16 12:10 +0200
    Re: Ok so Now which backup should I use Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2023-05-16 22:20 +0200

#258397 — Ok so Now which backup should I use

FromMaureen L Thomas <silverorb@verizon.net>
Date2023-05-16 02:20 +0200
SubjectOk so Now which backup should I use
Message-ID<GvQA1-9bjO-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

I have everything I need including a third HDD.  There are so many 
backup programs I have to wonder which one will work for my needs.  I 
just need to make a backup of my home directory so if I do something 
stupid like play with /var and have no idea how to fix it.  Is there 
something else I need to back up besides /home? I appreciate your help.

Moe

[toc] | [next] | [standalone]


#258401

From<paulf@quillandmouse.com>
Date2023-05-16 03:30 +0200
Message-ID<GvRFL-9bUV-1@gated-at.bofh.it>
In reply to#258397
On Mon, 15 May 2023 20:17:48 -0400
Maureen L Thomas <silverorb@verizon.net> wrote:

> I have everything I need including a third HDD.  There are so many 
> backup programs I have to wonder which one will work for my needs.  I 
> just need to make a backup of my home directory so if I do something 
> stupid like play with /var and have no idea how to fix it.  Is there 
> something else I need to back up besides /home? I appreciate your
> help.
> 
> Moe

I'd suggest backing up /etc, since that's where your system settings
are. I also back up /var, since that's typically where your logs and
mail are.

Which backup program you use depends on features, like whether you want
it to fire off at the same time every day. Like whether you want a GUI
or terminal program. Etc. Personally, I wrote my own backup script
using rsync, which fires off each day at about 7:38.

Paul


-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster

[toc] | [prev] | [next] | [standalone]


#258402

FromJeremy Ardley <jeremy@ardley.org>
Date2023-05-16 04:00 +0200
Message-ID<GvS8N-9c4C-3@gated-at.bofh.it>
In reply to#258401
On 16/5/23 09:11, paulf@quillandmouse.com wrote:
> I'd suggest backing up /etc, since that's where your system settings
> are. I also back up /var, since that's typically where your logs and
> mail are.

There is a lot relevant of stuff in /usr/local

For instance some programs use /usr/local/etc rather than /etc

and your custom installed fonts amongst lots of other stuff are in

/usr/local/share


-- 
Jeremy
(Lists)

[toc] | [prev] | [next] | [standalone]


#258409

FromCharles Kroeger <mbone@gmx.co.uk>
Date2023-05-16 08:00 +0200
Message-ID<GvVT3-9f06-1@gated-at.bofh.it>
In reply to#258402
When you have things going your way, why not just image the whole disc and
sleep well.

I have used this for years. It is proprietary yes, and runs on an old
version of Linux.

https://www.terabyteunlimited.com/image-for-linux/

I have no interest in these people, I don't get a commission for
advertising them. 

If you duel boot you can also make an image of that other
OS too, keep them both on a single disc using their respective file systems
on two partitions named for the purpose.  GParted working from a bootable
disc or stick, works well for setting that up.  IFL you put on
something that can be booted first in case things are really screwed. It is
pretty straight forward with no surprises.

An image before a large dist-upgrade especially with the word nvidia in the
list of packages, I would do without hesitation. 

-- 
salve debian invictum

[toc] | [prev] | [next] | [standalone]


#258451

FromCelejar <celejar@gmail.com>
Date2023-05-17 04:10 +0200
Message-ID<GweM1-9qx7-1@gated-at.bofh.it>
In reply to#258402
On Tue, 16 May 2023 09:52:07 +0800
Jeremy Ardley <jeremy@ardley.org> wrote:

> 
> On 16/5/23 09:11, paulf@quillandmouse.com wrote:
> > I'd suggest backing up /etc, since that's where your system settings
> > are. I also back up /var, since that's typically where your logs and
> > mail are.
> 
> There is a lot relevant of stuff in /usr/local
> 
> For instance some programs use /usr/local/etc rather than /etc

They do? I see that my /usr/local/etc is empty. What programs use this
directory

-- 
Celejar

[toc] | [prev] | [next] | [standalone]


#258455

FromAnssi Saari <anssi.saari@debian-user.mail.kapsi.fi>
Date2023-05-17 09:00 +0200
Message-ID<GwjiF-9ttU-1@gated-at.bofh.it>
In reply to#258451
Celejar <celejar@gmail.com> writes:

> On Tue, 16 May 2023 09:52:07 +0800
> Jeremy Ardley <jeremy@ardley.org> wrote:
>
>> 
>> On 16/5/23 09:11, paulf@quillandmouse.com wrote:
>> > I'd suggest backing up /etc, since that's where your system settings
>> > are. I also back up /var, since that's typically where your logs and
>> > mail are.
>> 
>> There is a lot relevant of stuff in /usr/local
>> 
>> For instance some programs use /usr/local/etc rather than /etc
>
> They do? I see that my /usr/local/etc is empty. What programs use this
> directory

It's an odd claim. I typically don't have anything in /usr/local except
what I put there myself. Some Debian packages do create a directory in
/usr/local/share but leave it empty. So what goes in /usr/local is
mostly software I've compiled myself and maybe some little
scripts. Basically stuff I might use both as both root and normal
user. If it's just for my non-privileged user account then it typically
goes in $HOME/bin or the more modern $HOME/.local/bin.

So for me, /usr/local is useful to back up but typically it amounts to
very little data. My Debian router has all of 812 kB in there, for
example.

[toc] | [prev] | [next] | [standalone]


#258456

FromJeremy Ardley <jeremy@ardley.org>
Date2023-05-17 09:20 +0200
Message-ID<GwjC1-9tPQ-5@gated-at.bofh.it>
In reply to#258455
On 17/5/23 14:53, Anssi Saari wrote:
> It's an odd claim. I typically don't have anything in /usr/local except
> what I put there myself. Some Debian packages do create a directory in
> /usr/local/share but leave it empty. So what goes in /usr/local is
> mostly software I've compiled myself and maybe some little
> scripts. Basically stuff I might use both as both root and normal
> user. If it's just for my non-privileged user account then it typically
> goes in $HOME/bin or the more modern $HOME/.local/bin.

Programs compiled from source rather than as part of a distro package 
may use /usr/local as a default.

For example kamailio defaults configuration to /usr/local/etc and 
homebrew defaults packages to /usr/local

-- 
Jeremy
(Lists)

[toc] | [prev] | [next] | [standalone]


#258457

From<tomas@tuxteam.de>
Date2023-05-17 09:40 +0200
Message-ID<GwjVn-9tVT-3@gated-at.bofh.it>
In reply to#258455

[Multipart message — attachments visible in raw view] — view raw

On Wed, May 17, 2023 at 09:53:36AM +0300, Anssi Saari wrote:
> Celejar <celejar@gmail.com> writes:
> 
> > On Tue, 16 May 2023 09:52:07 +0800
> > Jeremy Ardley <jeremy@ardley.org> wrote:
> >
> >> 
> >> On 16/5/23 09:11, paulf@quillandmouse.com wrote:
> >> > I'd suggest backing up /etc, since that's where your system settings
> >> > are. I also back up /var, since that's typically where your logs and
> >> > mail are.
> >> 
> >> There is a lot relevant of stuff in /usr/local
> >> 
> >> For instance some programs use /usr/local/etc rather than /etc
> >
> > They do? I see that my /usr/local/etc is empty. What programs use this
> > directory
> 
> It's an odd claim. I typically don't have anything in /usr/local except
> what I put there myself [...]

Not many. An "apt-file search /usr/local" turns up exactly three packages.
And I'd venture the guess that those three are doing this by mistake.

/usr/local is for the "local installation" (well, duh), not for the distro.
That's FHS, and Debian packaging rhymes pretty well with FHS.

Cheers
-- 
t

[toc] | [prev] | [next] | [standalone]


#258461

FromAnssi Saari <anssi.saari@debian-user.mail.kapsi.fi>
Date2023-05-17 14:00 +0200
Message-ID<GwnYZ-9wh2-3@gated-at.bofh.it>
In reply to#258457
<tomas@tuxteam.de> writes:

> On Wed, May 17, 2023 at 09:53:36AM +0300, Anssi Saari wrote:

>> It's an odd claim. I typically don't have anything in /usr/local except
>> what I put there myself [...]

> Not many. An "apt-file search /usr/local" turns up exactly three packages.
> And I'd venture the guess that those three are doing this by mistake.

Not many what? Are you really responding by not quoting the part you're
commenting on? Why?

It seems to me you're using the wrong tool to reach a wrong conclusion
with very little knowledge of the topic, that being Debian
packaging. Why do you think apt-file is the correct tool?

I'd appreciate a little restraint when contradicting what I said. You
don't have to vomit all of your half baked thoughts to the list. And
definitely don't automatically assume people don't know what they're
talking about.

[toc] | [prev] | [next] | [standalone]


#258462

From<tomas@tuxteam.de>
Date2023-05-17 14:10 +0200
Message-ID<Gwo8F-9wzC-3@gated-at.bofh.it>
In reply to#258461

[Multipart message — attachments visible in raw view] — view raw

On Wed, May 17, 2023 at 02:56:32PM +0300, Anssi Saari wrote:
> <tomas@tuxteam.de> writes:
> 
> > On Wed, May 17, 2023 at 09:53:36AM +0300, Anssi Saari wrote:
> 
> >> It's an odd claim. I typically don't have anything in /usr/local except
> >> what I put there myself [...]
> 
> > Not many. An "apt-file search /usr/local" turns up exactly three packages.
> > And I'd venture the guess that those three are doing this by mistake.
> 
> Not many what?

Not many packages.

> Are you really responding by not quoting the part you're
> commenting on? Why?

[...]

> It seems to me you're using the wrong tool to reach a wrong conclusion
> with very little knowledge of the topic, that being Debian
> packaging. Why do you think apt-file is the correct tool?

Because it tells me what any Debian package would put in /usr/local, 

> I'd appreciate a little restraint when contradicting what I said. You
> don't have to vomit all of your half baked thoughts to the list. And
> definitely don't automatically assume people don't know what they're
> talking about.

Sigh. Here's a full quote:

You wrote:
> Celejar <celejar@gmail.com> writes:
> 
> > On Tue, 16 May 2023 09:52:07 +0800
> > Jeremy Ardley <jeremy@ardley.org> wrote:
> >
> >>
> >> On 16/5/23 09:11, paulf@quillandmouse.com wrote:
> >> > I'd suggest backing up /etc, since that's where your system settings
> >> > are. I also back up /var, since that's typically where your logs and
> >> > mail are.
> >>
> >> There is a lot relevant of stuff in /usr/local
> >>
> >> For instance some programs use /usr/local/etc rather than /etc
> >
> > They do? I see that my /usr/local/etc is empty. What programs use this
> > directory
> 
> It's an odd claim. I typically don't have anything in /usr/local except
> what I put there myself. Some Debian packages do create a directory in
> /usr/local/share but leave it empty.

I repeat: "Some Debian packages..."

...to which I replied "Not many" (three, it seems).

Can we now declare this tempest in a teapot closed?

Cheers
-- 
t

[toc] | [prev] | [next] | [standalone]


#258488

FromJeremy Ardley <jeremy@ardley.org>
Date2023-05-18 09:20 +0200
Message-ID<GwG5z-9IgC-1@gated-at.bofh.it>
In reply to#258457
On 17/5/23 15:36, tomas@tuxteam.de wrote:
> Not many. An "apt-file search /usr/local" turns up exactly three packages.
> And I'd venture the guess that those three are doing this by mistake.

I did a very brief search and many well known packages default to /usr/local. It's just the packagers at Debian who change this to /etc

Defaulting to /usr/local include:

nginx http://nginx.org/en/docs/configure.html
kamailio https://github.com/kamailio/kamailio/blob/master/INSTALL
postfix https://www.postfix.org/INSTALL.html
dovecot https://doc.dovecot.org/installation_guide/dovecot_community_repositories/compiling_source/

I'm pretty confident most well known packages don't use /etc and instead use the /usr/local tree.

This may not be an issue for entry level Debian users, but anyone who does anything serious will want to compile from package source.

Back on topic. Backing up /usr/local should be SOP irrespective of distribution and level of user competence.

-- 
Jeremy
(Lists)

[toc] | [prev] | [next] | [standalone]


#258508

FromCelejar <celejar@gmail.com>
Date2023-05-18 23:40 +0200
Message-ID<GwTvP-9Qmt-3@gated-at.bofh.it>
In reply to#258488
On Thu, 18 May 2023 15:13:46 +0800
Jeremy Ardley <jeremy@ardley.org> wrote:

...

> This may not be an issue for entry level Debian users, but anyone who does anything serious will want to compile from package source.

They will?

-- 
Celejar

[toc] | [prev] | [next] | [standalone]


#258418

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2023-05-16 12:10 +0200
Message-ID<GvZN0-9hD6-1@gated-at.bofh.it>
In reply to#258397
On 5/15/23 17:17, Maureen L Thomas wrote:
> I have everything I need including a third HDD.  There are so many 
> backup programs I have to wonder which one will work for my needs.  I 
> just need to make a backup of my home directory so if I do something 
> stupid like play with /var and have no idea how to fix it.  Is there 
> something else I need to back up besides /home? I appreciate your help.
> 
> Moe


I will assume that you have one desktop computer with one internal 
drive, that you have two USB HDD's for backups, that you will connect 
one USB HDD at a time, and that you will rotate the USB HDD's periodically.


Start keeping records of your system administration activities.  The 
simplest approach is to use a USB flash drive.  Create a log.txt file 
and type your notes into that.  Copy and paste console sessions into the 
log.txt.  Copy files you create, modify, or delete to the USB flash 
drive.  This information will be invaluable for future reference and 
trouble shooting.


Keep using Brasero to burn optical discs containing the data that you 
want to keep indefinitely (archives).


If your system drive is an SSD, emptying the trash and running fstrim(8) 
prior to taking an image will reduce the image file size.


I would start by using Clonezilla to save a compressed full image of the 
internal drive to a file on a USB HDD:

https://clonezilla.org/


Clonezilla is non-trivial.  If you get stuck, try the clonezilla-live 
mailing list archives (or subscribing and posting):

https://sourceforge.net/p/clonezilla/mailman/


Once you have an image, do a full backup onto the USB HDD (see below).


Then immediately rotate the USB HDD's, take a compressed full image, do 
a full backup, and move the first USB HDD off-site.


After a period of time, or when the current USB HDD is nearly full, 
fetch the off-site USB HDD, rotate disks, take a compressed full image, 
do a full backup, and move the previous USB HDD off-site.  Repeat 
periodically.


As the USB HDD's fill up, delete the oldest images and backups to make 
room for new images and backups.


As for a Debian backup package:

https://wiki.debian.org/BackupAndRecovery


I have been using rsync(1) over ssh(1) for backups for many years.  If 
you are comfortable with a terminal, command-line interface, 
configuration files, rsync(1), ssh(1), crontab(1), etc., I suggest 
rsnapshot(1):

https://manpages.debian.org/bullseye-backports/rsnapshot/rsnapshot.1.en.html


If you want a simpler, single-user, GUI desktop backup application, I 
suggest backintime(1):

https://manpages.debian.org/buster/backintime-common/backintime.1.en.html


Evaluate the backup solution by using a test directory with some small 
test files under your home directory.  Verify that you can backup.  Then 
modify or delete a test file and verify that you can restore it.  If you 
like the backup tool, reconfigure it to backup your home directory and 
any data directories you have created.  Backing up /etc would be nice, 
if you can figure that out.


Restoring a Clonezilla image is more involved.  You will need a blank 
drive of exactly the same size as your current system drive, plus a 
drive case and tools for removing and installing drives (including an 
anti-static wrist strap).  After taking a full image, remove the system 
drive, install the blank drive, restore the image, boot the computer, 
and test.  If all is well, put the previous drive in the case.  If not, 
zero the new drive and try again.  If you cannot get the new drive 
working, remove it, reinstall the previous drive, and put the new drive 
in the case until you are ready to try again.


David

[toc] | [prev] | [next] | [standalone]


#258446

FromAnssi Saari <anssi.saari@debian-user.mail.kapsi.fi>
Date2023-05-16 22:20 +0200
Message-ID<Gw9jk-9ne6-13@gated-at.bofh.it>
In reply to#258397
Maureen L Thomas <silverorb@verizon.net> writes:

> I have everything I need including a third HDD.  There are so many backup programs I have to wonder which one will work for my needs.  I
> just need to make a backup of my home directory so if I do something stupid like play with /var and have no idea how to fix it.  Is there
> something else I need to back up besides /home?  I appreciate your help.

I use bup. It's a fairly simple command line tool. It can generate error
correction data for my backups too which I thought is great but as you
say, there are many

I back up /boot /etc /home /root usr/local /var/lib/dpkg /var/lib/apt/extended_states
on my main desktop. Probably different directories on my other computers.

I can't remember why /var/lib/dpkg and /var/lib/apt/extended_states though.

/boot is a little suspect too but I do have a custom Grub theme in
there but that's the only thing worth backing up in /boot.

I also save partition tables with sfdisk and Debian package selections
with dpkg --get-selections "*", just in case. My desktop especially has
a fair number of partitions on the boot drive with three operating
system. So, good to keep a copy of that.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web