K
K
Kirill Kazakov2015-12-01 22:47:41
Backup
Kirill Kazakov, 2015-12-01 22:47:41

How to backup lxc by excluding some folders from VM?

Proxmox has a backup - snapshot , but you need to exclude some folders, how to do it?
Proxmox+lxc

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kazakov, 2015-12-03
@mausspb

Disks are located here by default

/var/lib/vz/images/100/disk.raw

We get a list of all files connected in this way:
#losetup -a

Mount file as a block device
#losetup /dev/loop0 /path/to/disk.raw

Mount to work with FS
#mount /dev/loop0 /mnt/

Delete block device
#losetup -d /dev/loop0

Unmount
#umount /mnt

PS If lxc is running, then we look at the list of devices working with losetup
#losetup -a
and mount
#mount /dev/loop0 /mnt

P
Puma Thailand, 2015-12-02
@opium

this is a snapshot, add disks, mount them in a directory and exclude these disks from backups.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question