The officially official Devuan Forum!

You are not logged in.

#26 Re: Other Issues » Ceres AMD64 unable to install wine32 » 2023-07-27 15:59:16

Bookworm is now on version 12.1 which is usually taken as a sign that initial bugs have been sorted and sysadmins. can safely upgrade.

So I would expect Daedalus, which exactly the same packages as Bookworm in most cases should equally be ready, apart from the installation isos which are still being tested.

Most security updates appear on Daedalus as soon as they appear on Bookworm since Devuan merges Bookworm packages with the very limited number of 'devuan modified' packages. For example the Zenbleed AMD firmware patch appeared very quickly.

For myself, having upgraded my desk PC from Chimaera to Daedalus a few weeks ago without issue I've now upgraded my two others machines, one a mail server and all seems good.

#27 Re: Off-topic » Zenbleed - CVE-2023-20593 » 2023-07-26 13:26:19

I'm not affected personally as my AMD 5600G is Zen3 not Zen2,

Nevertheless a AMD-microcode fix for Chimaera, Daedalus and Unstable landed this morning as a security update.

However as the end of that security-tracker (https://security-tracker.debian.org/tra … 2023-20593) it says:

3.20230719.1 ships the first batch of fixes, only for 2nd gen Epyc CPUs, further
CPUs to follow in later releases

This is the one we have now got. Epyc is a database CPU.

So there are still fixes to come for the other Zen2 (Ryzen) CPUs which aren't fixed yet.

More info here:

https://web.archive.org/web/20230724143 … bleed.html

If you haven't got the microcode fix there is a workaround mentioned in this article:

Workaround

It is highly recommended to use the microcode update.

If you can’t apply the update for some reason, there is a software workaround: you can set the chicken bit DE_CFG[9].

This may have some performance cost.

Linux

You can use msr-tools to set the chicken bit on all cores, like this:

# wrmsr -a 0xc0011029 $(($(rdmsr -c 0xc0011029) | (1<<9)))

#28 Re: Devuan » Devuan 5 Daedalus Release (Debian 12 - Bookworm) | Looking for info » 2023-07-17 10:31:57

GNUser wrote:

Yesterday I upgraded from Chimaera to Daedalus without any issues. Here are the steps I followed:

Edit /etc/apt/sources.list to point to daedalus
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade # at the end there are some errors having to do with old version of linux kernel
$ sudo apt-get autoremove --purge # this removes the packages that caused errors
$ sudo apt-get dist-upgrade # now it completes without any errors
$ sudo apt-get autoclean
Reboot

I'm assume that we will be providing a note on how to upgrade as well as how to install from new and how to convert from Debian.
So I thought it might be useful to document my experience and any trip hazards I encountered.

I upgraded just over a week ago, using the same steps as described above.
Where it asked about if I wanted to accept new default config files I chose to keep those I already had.
I was already using the most recent backported 6.1 kernel prior to the upgrade.
A simple replace edit of sources list is however not entirely sufficient as you should add the 'non-free firmware' to each line.
With that change I had no problems in the upgrade as such.

I use unattended-upgrades to install any security package updates daily.
I had to change the line  "o=Devuan,n=chimaera-security" to  "o=Devuan,n=daedalus-security" in /etc/apt/apt.conf.d/50unattended-upgrades.

My motherboard (a MSI B550) use a custom chip to monitor fan speeds in particular.
There is a corresponding kernel module but it was not loaded. I ran

sudo modprobe nct6687.ko

to load it and then sensors could see it.

Grub no longer runs osprober by default. If you have been using it to create grub menu items to boot to alternative OS on your machine you will need to as root restore it in the file /etc/default/grub by un-commenting the line

#GRUB_DISABLE_OS_PROBER=false

and then run update-grub as root.

Also relating to grub the menu on my PC now works with my usb keyboard (it didn't on Chimaera).

rsyslog creates fewer log files, such as /var/log/mail.{info,warn,err}. The messages are still there in /var/log/mail.log.
If you have another program reading any of these, e.g. fail2ban, you will need to get it to read /var/log/mail.log instead.
Similarly /var/log/{messages,debug,daemon.log} are also no longer being updated. Their messages are still there in /var/log/syslog.
All these (and their log-rotated counterparts) can now be removed.
Logrotate itself is working as expected on my PC.

Just for info. I run Cinnamon. After the upgrade Gnome programs (such as Evolution and System Monitor) now duplicate the Max/Min/Close symbols and Title that are in the Window Title Bar in the top line of the program. Nothing fatal but it looks odd.

There are some changes in Bookworm (and hence Daedelus) that don't affect my PC but might others e.g. the packages that set the system clock and reduced accessibility support.
Changes to Bookworm (and by default Daedulus) are covered in the release notes' Chapter 5 Issues to be aware of for bookworm https://www.debian.org/releases/bookwor … on.en.html

#29 Re: Devuan » Some Newbie Questions about Devuan on Desktop » 2023-07-11 22:37:21

I upgraded to Daedalus two day ago.

I use dnscrypt-proxy. It was previously running on Chimaera.

The package version installed and running is 2.0.45+ds1-1+devuan1

So clearly a Devuan compliant version.

There are a number of packages in Debian that have had to be modified to run without systemd. I assume that this is one of them.

#30 Re: Installation » Synaptic suddenly won't start on Chimeara » 2023-07-05 22:59:03

From the user Desktop (I use Cinnamon) Synaptic is authorised to open a root graphics session (gtk) through pkexec (which is what pops up the authorisation requester) and behind that is polkit.
Might be worth having a look in /var/log/auth.log to see if it's throwing errors.

On my PC a recent synaptic session was logged in /var/log/auth.log like this:

Jul  3 17:33:18 grendel polkitd(authority=local): Operator of unix-session:1 successfully authenticated as unix-user:marjorie to gain ONE-SHOT authorization for action com.ubuntu.pkexec.synaptic for unix-process:13922:214554138 [/bin/sh /usr/bin/synaptic-pkexec] (owned by unix-user:marjorie)
Jul  3 17:33:18 grendel pkexec: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Jul  3 17:33:18 grendel pkexec[13925]: marjorie: Executing command [USER=root] [TTY=unknown] [CWD=/home/marjorie] [COMMAND=/usr/sbin/synaptic]

My software stack is:
Host: grendel
Kernel: 6.1.0-0.deb11.7-amd64 x86_64
compiler: gcc v: 10.2.1
Desktop: Cinnamon 4.8.6
tk: GTK 3.24.24
wm: muffin 4.8.1
dm: LightDM 1.26.0
Distro: Devuan GNU/Linux 4 (chimaera)

#31 Re: Hardware & System Configuration » Logrotate on Daedalus » 2023-06-27 18:58:34

There are some changes to how logging works in Bookworm mentioned in the release notes, see sections 5.17-5.19.

It's not clear how these changes propagate through to Daedalus when it's either a new install (as I surmise yours was originally) or if you upgrade from Chimaera.

https://www.debian.org/releases/bookwor … em-logging

#32 Re: Hardware & System Configuration » [SOLVED] Unclaimed display controller » 2023-04-24 22:32:27

Hi,

You have posted the output of lshw as an image - the font is tiny and I, at least, find it unreadable, so it's hard to help you further.

This is my output of the same command on my PC posted  with code delimiters.

I'm running a AMD B550 motherboard with a AMD Ryzen 5 5600G with Radeon Graphics.

sudo lshw -C video
  *-display                 
       description: VGA compatible controller
       product: Cezanne
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:30:00.0
       version: c9
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list rom
       configuration: driver=amdgpu latency=0
       resources: irq:37 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:e000(size=256) memory:fcb00000-fcb7ffff memory:c0000-dffff

Can you do the same, please?

Also it would be helpful if you can say what you are aiming for in video,

#33 Re: Hardware & System Configuration » Grub problem after installing new Kernel » 2023-03-29 11:12:48

Is grub failing completely?
Usually you can successfully boot into the previous kernel from the grub menu.

#34 Re: Installation » [SOLVED] fail2ban banactions, convert from iptables to nftables » 2023-03-10 14:12:26

Hi Ralph. Yes, perhaps I'm just not very good at expressing my understanding of this.

The Debian wiki says:

Starting with Debian 10 Buster, nf_tables is the default backend when using iptables, by means of the iptables-nft layer (i.e, using iptables syntax with the nf_tables kernel subsystem). This also affects ip6tables, arptables and ebtables.

You can switch back and forth between iptables-nft and iptables-legacy by means of update-alternatives (same applies to arptables and ebtables).

So I suspect that in the default installation the fail2ban configuration assumes that iptables is installed, calls iptables and uses iptables-nft to translate.
Not quite the same thing as going nftables native.

Hence it seems that the simplest solution for the OP is, as you have said, to reinstall iptables.

#35 Re: Installation » [SOLVED] fail2ban banactions, convert from iptables to nftables » 2023-03-10 12:58:31

In your /etc/fail2ban/jail.conf I notice you have:

208:banaction = iptables-multiport
209:banaction_allports = iptables-allports

In my version (which works) I have:

# Default banning action (e.g. iptables, iptables-new,
# iptables-multiport, shorewall, etc) It is used to define
# action_* variables. Can be overridden globally or per
# section within jail.local file
banaction = nftables[type=multiport]
banaction_allports = nftables[type=allports]

also my  /etc/fail2ban/jail.local starts:

[DEFAULT]
banaction = nftables
chain     = input

[apache-auth]
enabled = true

NB all my subsequent jails after [apache-auth] are for postfix/dovecot as I only actively use apache to get my letsencrypt certificates (a webpage also exists).

So your fail2ban is calling iptables for banactions when you've deleted it. My version just invokes nftables.

The problem maybe that the switch from iptables to nftables is still incomplete in Chimaera and the default version still uses iptables commands that are then translated to nftables syntax. The underlying kernel module *is* now nftables.

My mail server was originally created in Beowulf ad novo using the guide that I referenced so is strict nftables (no iptables) while my own workstation is still using iptables (it began as asciii). Both were subsequently upgraded to Chimaera. The workstation doesn't need fail2ban.

#36 Re: Installation » [SOLVED] fail2ban banactions, convert from iptables to nftables » 2023-03-09 14:58:25

Wondering if you've ended up with some form of hybrid iptables/nftables fail2ban config.

can you post the contents of your  /etc/fail2ban/jail.conf and /etc/fail2ban/jail.local file?

I used this guide to set up my mail system (with apache2 and postfix/dovecot support)
https://workaround.org/bullseye/firewal … igation-2/
I just needed translate the usual systemd systemctl call to sysvintit service calls.

#37 Re: Devuan » [SOLVED] I hate asking this question... but Daedalus release? » 2023-02-05 19:30:00

Head_on_a_Stick wrote:
Marjorie wrote:

It seems to be a graphics issue

Try a newer firmware version:

The 2022-12-14 snapshot (of firmware-amd-graphics] will probably fix things with no need to run an outdated kernel with known, published vulnerabilities.

The .deb from unstable should be safe to install in a stable system because it has no dependencies:

http://deb.debian.org/debian/pool/non-f … -5_all.deb

Well that may help.Thanks.

You do have to upgrade firmware-linux-nonfree from stable to backports first before the more up to date firmware-amd-graphics will install.

Installed it, upgrade to the latest 6.0.0.0 backported kernel and Zoom and Signal now start OK. Suspend-resume works for a while after resume and then freezes, as before.

Not sure why a still current and supported LTS kernel is considered "outdated kernel with known, published vulnerabilities", though I note that all the backported kernels lag the latest version.

mainline:        6.2-rc6 	        2023-01-29 	
stable:          6.1.9 	                2023-02-01 	
stable:          6.0.19 [EOL]           2023-01-12 	
longterm:        5.15.91 	        2023-02-01 	
longterm:        5.10.166               2023-02-01 	
longterm:        5.4.230 	        2023-01-24 	
longterm:        4.19.271 	        2023-01-24 	
longterm:        4.14.304 	        2023-01-24 	
longterm:        4.9.337 [EOL]          2023-01-07 

#38 Re: Devuan » [SOLVED] I hate asking this question... but Daedalus release? » 2023-02-04 23:09:51

I have a 5600G running Chimaera.
AMD issued fixes for the integrated graphics in the 5600G in backported kernel 5.15, this also fixed an issue I had with the lack of a driver for the sensor (nct6687) on my MSI B550 motherboard.
I have since attempted to install more recent backport kernels but I found that they have issues. In particular Signal Desktop (from the repositories) and Zoom (from Zoom) often almost froze when starting. It seems to be a graphics issue.
This may well have been fixed in newer kernels than the ones I tried but if you are still having issues having followed Rolfie's advice I suggest you try 5.15 (LTS until at least October 2023).
I still get freeze issues with 5.15 if I try to suspend and resume. Hibernate and resume works fine.

#39 Re: Hardware & System Configuration » git netfilter compile problem » 2023-01-25 10:25:20

dcolburn wrote:

Love the gone "pear shaped" humor. You remind me of an old friend.

I swapped your nftables.conf code for mine - do I need to reboot for it to take effect?

EDIT 1:

Rebooted - no joy.

EDIT 2:

# nft -cf /etc/nftables.conf reports no errors.

(as root)

service nftables status

will tell you if its running.

service nftables restart
or
service  nftables force-reload

can be used to restart or just reload the conf file respectively. Or a reboot will also work.

as well as status run

nft list ruleset

and post it so we can check its working.

If it is working then I expect your problem is elsewhere.

Try a port scan from another machine on your network to see if ports 80 and 443 are open.

#40 Re: Hardware & System Configuration » git netfilter compile problem » 2023-01-24 22:41:52

You could try this nftables.conf.

This is based on mine, which works, the only changes are that I've pruned the additional ports I've opened on mine for email, ntp, dns, monitoring.

#!/usr/sbin/nft -f
flush ruleset
table inet filter {
  chain input {
    type filter hook input priority 0; policy drop;

    iifname lo accept
    ct state established,related accept
    tcp dport ssh ct state new accept
    tcp dport http ct state new accept
    tcp dport https ct state new accept
    
     # ICMP: errors, pings
     ip protocol icmp icmp type { echo-request, echo-reply, destination-unreachable, time-exceeded, parameter-problem, router-solicitation, router-advertisement } accept
     # ICMPv6: errors, pings, routing
     ip6 nexthdr icmpv6 counter accept comment "accept all ICMP types"

     # Reject other packets
     ip protocol tcp reject with tcp reset
  }
}

#41 Re: Hardware & System Configuration » git netfilter compile problem » 2023-01-24 22:14:44

boughtonp wrote:

The IP in your most recent post is not a private address - it appears to belong to an ISP - indicating that you may be trying to run a public Internet-facing webserver from a machine on your home network...?

As he has a fixed IP from his ISP (though I recall he does describe it as immutable not fixed) that isn't necessarily an issue: I have a fixed IP from my ISP (Zen) and it hosts both an accessible (apache) website and my (postfix) family mail server.
And we were able to access his website too at one point before it all went pear-shaped.

But as your (dcolburn) server is on a network behind a router can I assume that you have opened the relevant ports on the router as well as your server's (nftables) firewall?

#42 Re: Installation » why this solution not working on Devuan Chimaera? » 2023-01-22 16:44:43

deepforest wrote:

But from devuan repo 340.108 is working but not perfectly installs (nvidia-settings launch only from terminal and i need to delete some modprobe nvidia files because do not want see warnings during booting process)

In order to run nvidia video drivers the init will have to insert the nvidia kernel module, done by a modprobe. I have a pc (not my main pc) with an nvidia card and it invariably came up with an insert nvidia kernel module fail message early in the boot process though it would go on and succeed subsequently 'tainting the kernel'.

If you have deleted some 'modprobe nvidia files' you may have disabled this insertion.

When you change the kernel version the nvidia kernel module also needs to be recompiled and to do so requires that you have the matching kernel headers as well as the new kernel itself. If everything is present it does this automatically, however the PC will then need to be rebooted.

#43 Re: Hardware & System Configuration » [SOLVED] Restart nginx question » 2023-01-21 23:05:45

Alternatively use either 

sudo service nginx restart

or

su - 
service nginx restart

depending on whether you have a root password or not.

#44 Re: Installation » "target_home" dir after installation? » 2023-01-18 11:09:01

AFAIK (I've only used it as a live disk to test compatibility with my PC and then switched to using the full installer as I need something more complicated)  the live installer just does a basic job of reproducing the configuration that comes on the live iso. It installs everything to a single partition on the target disk, complete with / and /home, Not sure what it does about swap.
If you have an existing /home on another disk it will know nothing about that. If /home is on another partition but on the same disk it will remove it when if formats the disk.
After installing you can go into the new installation and remap its /etc/fstab to point /home to your existing /home partition.

#45 Re: Installation » [SOLVED] gparted missing » 2023-01-17 23:21:52

dcolburn wrote:

It should be trivial to just initiate an incremental backup when I make a substantive change - otherwise automate a routine incremental backup every night.

Thanks!

Be aware that Deja Dup is only intended to do an incremental back up of files in your /home directory.

e.g.. see https://gitlab.gnome.org/World/deja-dup:

"Déjà Dup focuses on ease of use and personal, accidental data loss. If you need a full system backup or an archival program, you may prefer other backup apps."

While in theory you could backup your entire system if you ran it as root that is not reliable as the backup may end up inconsistent - generally you should only backup your system files offline or if you have the tools to snapshot your mounted system.

#46 Re: Installation » [SOLVED] gparted missing » 2023-01-17 23:04:22

dcolburn wrote:

gparted isn't present in the menu, doesn't respond in root (prefixed or not with 'sudo'), and isn't present in Synaptic Package Manager.

(I ran 'reload' in SPM - in case it was a damaged repo list.)

Has it been removed or replaced, or do I just have yet-another bizarre local anomaly?

Devuan chimaera, xfce 4.16.0

I think its optional. Although its in the main repository, lots of useful utilities are optional. If it's there you should find it be searching for it in synaptic. If you find it just install it.

When I searched for it in synaptic history (file/history) I see that I installed it myself.

#47 Re: Other Issues » (Unattended-upgrades) Apparently I'm running Debian... Again. » 2023-01-17 21:30:36

steve_v wrote:

That's kinda my point WRT using ${distro_codename} instead of a hardcoded release. That's how Debian does it, and it allows unattended-upgrades to track the new release after a dist-upgrade with no manual changes to its configuration at all.

Ditto for the devuan-security line, I see no reason not to use ${distro_codename} there either, unless to create more packaging work.

Surely that would only make sense if I wanted to upgrade immediately 'testing' became 'stable'?
I'm far too conservative to want to do that - I'd rather wait a decent interval and let other find out for me what problems are surfaced.
Note the latest fubar with Windows ( https://www.theregister.com/2023/01/16/ … e_scripts/).
This is also why I only update security patches immediately.

#48 Re: Other Issues » (Unattended-upgrades) Apparently I'm running Debian... Again. » 2023-01-17 11:23:04

dice wrote:

I have never used unattended upgrades. Could the devuan 3.1 release notes shed a bit more light on this issue?

I use unattended upgrades to install security upgrades on both my main PC and my mail server.

I didn't find it that difficult to get working.

1. Install package

2. Consult man page

man unattended-upgrades

read the lines

CONFIGURATION
       The  configuration  is  done  via  the  apt  configuration  mechanism.  The  default  configuration  file can be found at
       /etc/apt/apt.conf.d/50unattended-upgrades

3. Open (as root/sudo) the file  /etc/apt/apt.conf.d/50unattended-upgrades and configure.
The file is largely self-documenting.

This includes changing the default distribution and package.

This is my fixed/working version. I suspect its unchanged (apart from changing ascii to chimaera in line 43) since I used ascii.

// Unattended-Upgrade::Origins-Pattern controls which packages are
// upgraded.
//
// Lines below have the format format is "keyword=value,...".  A
// package will be upgraded only if the values in its metadata match
// all the supplied keywords in a line.  (In other words, omitted
// keywords are wild cards.) The keywords originate from the Release
// file, but several aliases are accepted.  The accepted keywords are:
//   a,archive,suite (eg, "stable")
//   c,component     (eg, "main", "contrib", "non-free")
//   l,label         (eg, "Devuan", "Devuan-Security")
//   o,origin        (eg, "Devuan")
//   n,codename      (eg, "ascii", "ascii-updates")
//     site          (eg, "deb.devuan.org")
// The available values on the system are printed by the command
// "apt-cache policy", and can be debugged by running
// "unattended-upgrades -d" and looking at the log file.
//
// Within lines unattended-upgrades allows 2 macros whose values are
// derived from /etc/debian_version:
//   ${distro_id}            Installed origin.
//   ${distro_codename}      Installed codename (eg, "ascii")
Unattended-Upgrade::Origins-Pattern {
        // Codename based matching:
        // This will follow the migration of a release through different
        // archives (e.g. from testing to stable and later oldstable).
//      "o=Devuan,n=ascii";
//      "o=Devuan,n=ascii-updates";
//      "o=Devuan,n=ascii-proposed-updates";

        // Archive or Suite based matching:
        // Note that this will silently match a different release after
        // migration to the specified archive (e.g. testing becomes the
        // new stable).
//      "o=Devuan,a=stable";
//      "o=Devuan,a=stable-updates";
//      "o=Devuan,a=proposed-updates";

        // Activate *-security by default.
        // This will make it easier for Devuan derivatives.
        // "a=*-security";
	//
	"o=Devuan,n=chimaera-security";
};

// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
//	"vim";
//	"libc6";
//	"libc6-dev";
//	"libc6-i686";
};

// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run 
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";

// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";

// Install all unattended-upgrades when the machine is shutting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
//Unattended-Upgrade::InstallOnShutdown "true";

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user@example.com"
Unattended-Upgrade::Mail "root";

// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade 
//Unattended-Upgrade::Automatic-Reboot "false";

// Automatically reboot even if there are users currently logged in.
//Unattended-Upgrade::Automatic-Reboot-WithUsers "true";

// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

// Enable logging to syslog. Default is False
Unattended-Upgrade::SyslogEnable "true";

// Specify syslog facility. Default is daemon
// Unattended-Upgrade::SyslogFacility "daemon";

It might be nicer if the Chimaera version included Devuan/Chimaera/security defaults (my line 43):

       "o=Devuan,n=chimaera-security"; 

But not sure its really worth pestering our admins to do this every time Debian change it upstream as there are other options in the config you might want to change anyway ( I don't do auto reboots or install non-security ungrades, I do ask it to email me when upgrades happen) though a mention in the release notes might help as at the very least you do need to change that line, or it's equivalent, to include 'chimaera' when upgrading.

I run apt both on my mail server and my main PC via 0anacron and apt-compat in /etc/cron.daily so it should check for updates daily. For a server you could just call it directly from cron, however as I often hibernate rather than reboot my main PC overnight I also get it to check for updates on resume (cron doesn't run jobs called when the computer is turned off at the designated time).

#49 Re: Hardware & System Configuration » Server lost changes and partially reverted » 2023-01-06 22:48:19

Backing up.

To backup my /home partition I would use something that supports incremental back where it's possible to restore individual files or directories. I use Déjà Dup which is just a wrapper around duplicity.

To backup my \root partition I use fsarchiver which does a whole partition backup. Although it is possible to backup a live partition (using the -A flag) it's much safer to unmount it and backup from another system (e.g one on a usb stick). If you the have LVM partitions (which I do, on top of RAID1) you can snapshot your live root partition.

#50 Re: Hardware & System Configuration » Server lost changes and partially reverted » 2023-01-06 13:53:39

I always understood 'fake' RAID/bios RAID doesn't work with Linux.

I do use mdadm RAID1 on my desktop machine, but not on my html/email server and it can help to cover disk failure and some forms of corruption but I would strongly recommend that you do an actual backup of your /root as well as your /home directories regularly to somewhere else. You may choose different solutions/frequencies for /root and /home.

However as you had finally got your nginx htmp server working that is when I would have made a backup of both.

The brtfs filesystem allows for snapshoting of your live system. You can also snapshot a ext4 system if it's inside a LVM2. There are also offline backup solutions where you boot from an alternative root system e.g. from a recovery disk on a usb drive and then run a backup of your unmounted filesystem from that.

Board footer

Forum Software