How to backup before a release upgrade from Ubuntu 18.04.5 LTS server?

Bo Berglund bo.berglund at gmail.com
Thu Sep 30 08:05:50 UTC 2021


On Tue, 28 Sep 2021 19:52:31 +0200, Bo Berglund <bo.berglund at gmail.com> wrote:

>
>Should I have excluded more, like /var/lib/lxcfs/*
>I cannot exclude /var/* since the svn repositories are in /var/lib/svn/ and
>these must be part of a backup.
>

So now I have expanded the excludes as follows:
--exclude={'lxcfs/*','sys/*','proc/*','mnt/*','media/*','nfs/*','opt/*','lost+found/*','tmp/*','*.mp4','*.part','*.ts'}

This has stopped the errors from showing up and since I use time I get to see
the time it took to write a backup sized 36GB:

real    29m4.921s
user    6m31.377s
sys     5m54.656s

Question:
---------
I used the excludes shown to block the content of dirs:

'lxcfs/*','sys/*','proc/*','mnt/*','media/*','nfs/*','opt/*','lost+found/*','tmp/*'

where lxcfs/* expands to /var/lib/lxcfs/*, which in turn contains cgroup/ and
proc/

Is this OK or is the content of /var/lib/lxcfs/* important for a restore?


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list