Hello,
I am trying to backup a physical computer running Ubuntu 20.04 installed on ZFS. I tried this simple command:
But I realized many files were not backed up (nothing in /home/myusername/ for example). I guess it is related to the way Ubuntu created the mountpoints during installation to work with ZSys (see https://didrocks.fr/2020/06/16/zfs-focus-on-ubuntu-20.04-lts-zsys-dataset-layout/):
So, to backup the equivalent of "/", I run:
What is the correct way to backup a system installed on ZFS?
Thanks for any help!
I am trying to backup a physical computer running Ubuntu 20.04 installed on ZFS. I tried this simple command:
Code:
sudo proxmox-backup-client backup root.pxar:/ --repository <username>@<ip>:<datastore>
But I realized many files were not backed up (nothing in /home/myusername/ for example). I guess it is related to the way Ubuntu created the mountpoints during installation to work with ZSys (see https://didrocks.fr/2020/06/16/zfs-focus-on-ubuntu-20.04-lts-zsys-dataset-layout/):
Code:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 258M 1,50G 96K /boot
bpool/BOOT 257M 1,50G 96K none
bpool/BOOT/ubuntu_e9emv8 257M 1,50G 180M /boot
rpool 9,42G 101G 192K /
rpool/ROOT 5,89G 101G 192K none
rpool/ROOT/ubuntu_e9emv8 5,89G 101G 3,49G /
rpool/ROOT/ubuntu_e9emv8/srv 192K 101G 192K /srv
rpool/ROOT/ubuntu_e9emv8/usr 932K 101G 192K /usr
rpool/ROOT/ubuntu_e9emv8/usr/local 740K 101G 484K /usr/local
rpool/ROOT/ubuntu_e9emv8/var 1,23G 101G 192K /var
rpool/ROOT/ubuntu_e9emv8/var/games 192K 101G 192K /var/games
rpool/ROOT/ubuntu_e9emv8/var/lib 1,21G 101G 864M /var/lib
rpool/ROOT/ubuntu_e9emv8/var/lib/AccountsService 516K 101G 248K /var/lib/AccountsService
rpool/ROOT/ubuntu_e9emv8/var/lib/NetworkManager 1,12M 101G 288K /var/lib/NetworkManager
rpool/ROOT/ubuntu_e9emv8/var/lib/apt 148M 101G 132M /var/lib/apt
rpool/ROOT/ubuntu_e9emv8/var/lib/dpkg 87,4M 101G 53,4M /var/lib/dpkg
rpool/ROOT/ubuntu_e9emv8/var/log 12,2M 101G 4,51M /var/log
rpool/ROOT/ubuntu_e9emv8/var/mail 192K 101G 192K /var/mail
rpool/ROOT/ubuntu_e9emv8/var/snap 712K 101G 440K /var/snap
rpool/ROOT/ubuntu_e9emv8/var/spool 936K 101G 344K /var/spool
rpool/ROOT/ubuntu_e9emv8/var/www 192K 101G 192K /var/www
rpool/USERDATA 3,51G 101G 192K /
rpool/USERDATA/myusername_qv8k04 3,51G 101G 3,00G /home/myusername
rpool/USERDATA/root_qv8k04 1,39M 101G 372K /root
So, to backup the equivalent of "/", I run:
Code:
sudo proxmox-backup-client backup root.pxar:/ --repository <username>@<ip>:<datastore> --include-dev '/boot' --include-dev '/' --include-dev '/srv' --include-dev '/usr' --include-dev '/usr/local' --include-dev '/var' --include-dev '/var/games' --include-dev '/var/lib' --include-dev '/var/lib/AccountsService' --include-dev '/var/lib/NetworkManager' --include-dev '/var/lib/apt' --include-dev '/var/lib/dpkg' --include-dev '/var/log' --include-dev '/var/mail' --include-dev '/var/snap' --include-dev '/var/spool' --include-dev '/var/www' --include-dev '/home/myusername' --include-dev '/root'
- I need to set every paths or the the subdirectories are not included in the backups (for example: --include-dev '/var' does not include '/var/games'). Otherwise, I would just have left --include-dev '/'
- --exclude doesn't exclude from --include-dev (for example: --include-dev '/home/myusername' --exclude '/home/myusername/.cache' doesn't exclude '/home/myusername/.cache')
What is the correct way to backup a system installed on ZFS?
Thanks for any help!
Last edited: