User Tools

Site Tools


wiki:moving_lxc_containers

Moving lxc containers

cd /var/lib/lxc/$NAME/
tar --numeric-owner -czvf /root/container_fs-$(date +%Y%m%d).tar.gz ./*

From one partition to another:

cp -a /data2/lxc/agencyreports /data/lxc/

Tested on

See also

References

wiki/moving_lxc_containers.txt · Last modified: 2021/04/01 14:44 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki